home *** CD-ROM | disk | FTP | other *** search
Unknown | 1991-12-08 | 61.4 KB | [nX^d/nX^n] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [nX^d] |
macFileCreator | [nX^n] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 04 00 f2 30 04 00 bf 99 |........|...0....|
|00000010| 04 00 eb 37 04 00 c8 3f | 04 00 eb 39 00 2e d1 fa |...7...?|...9....|
|00000020| 00 2e d1 f6 00 2e d1 f2 | 00 37 00 06 00 2e d2 4e |........|.7.....N|
|00000030| 00 00 00 00 00 00 75 3a | 06 9e 80 53 ff ff 00 00 |......u:|...S....|
|00000040| 09 00 00 00 00 00 00 ff | ff 00 ff 00 00 00 08 ce |........|........|
|00000050| 00 1d 09 d5 02 0c 00 00 | 00 00 00 41 00 00 00 00 |........|...A....|
|00000060| 00 00 00 00 00 41 00 00 | 08 f6 ff 00 00 00 00 00 |.....A..|........|
|00000070| 00 00 00 00 00 00 01 01 | 02 52 00 00 00 48 00 48 |........|.R...H.H|
|00000080| ff fe 00 18 03 49 02 52 | 00 1e 00 1c 03 2b 02 36 |.....I.R|.....+.6|
|00000090| 00 64 00 03 00 00 04 00 | ef 8a 01 98 09 24 00 8c |.d......|.....$..|
|000000a0| 00 10 04 00 ef 8a 01 98 | 09 24 00 8c 00 10 58 b7 |........|.$....X.|
|000000b0| 00 00 00 00 00 00 00 00 | 00 ff 00 00 00 00 00 00 |........|........|
|000000c0| f5 98 00 00 f5 98 00 00 | f5 98 00 01 30 f5 00 00 |........|....0...|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 04 00 f2 30 | 04 00 bf 99 04 00 eb 37 |.......0|.......7|
|00000110| 04 00 c8 3f 04 00 eb 39 | 00 2e d1 fa 00 2e d1 f6 |...?...9|........|
|00000120| 00 2e d1 f2 00 37 00 06 | 00 2e d2 4e 00 00 00 00 |.....7..|...N....|
|00000130| 00 00 75 3a 06 9e 80 53 | ff ff 00 00 09 00 00 00 |..u:...S|........|
|00000140| 00 00 00 ff ff 00 ff 00 | 00 00 08 ce 00 1d 09 d5 |........|........|
|00000150| 02 0c 00 00 00 00 00 41 | 00 00 00 00 00 00 00 00 |.......A|........|
|00000160| 00 41 00 00 08 f6 ff 00 | 00 00 00 00 00 00 00 00 |.A......|........|
|00000170| 00 00 01 01 02 52 00 00 | 00 48 00 48 ff fe 00 18 |.....R..|.H.H....|
|00000180| 03 49 02 52 00 1e 00 1c | 03 2b 02 36 00 64 00 03 |.I.R....|.+.6.d..|
|00000190| 00 00 04 00 ef 8a 01 98 | 09 24 00 8c 00 10 04 00 |........|.$......|
|000001a0| ef 8a 01 98 09 24 00 8c | 00 10 58 b7 00 00 00 00 |.....$..|..X.....|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 f5 98 00 00 |........|........|
|000001c0| f5 98 00 00 f5 98 00 01 | 30 f5 00 00 00 00 00 00 |........|0.......|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 04 0d 0d 0d 0d 00 04 | 0d 0d 0d 0d 00 92 67 61 |........|......ga|
|00000210| 6d 65 45 76 65 6e 74 52 | 65 63 6f 72 64 ff 00 10 |meEventR|ecord...|
|00000220| 0a 00 f7 0d 09 65 76 65 | 6e 74 09 67 61 6d 65 45 |.....eve|nt.gameE|
|00000230| 76 65 6e 74 54 79 70 65 | 09 ff 00 17 0c 00 f7 ba |ventType|........|
|00000240| ff 00 10 0a 00 f7 09 67 | 65 5f 53 65 6e 64 4d 65 |.......g|e_SendMe|
|00000250| 73 73 61 67 65 0d 09 6d | 65 73 73 61 67 65 09 53 |ssage..m|essage.S|
|00000260| 74 72 32 35 35 09 ff 00 | 17 0c 00 f7 de ff 00 10 |tr255...|........|
|00000270| 0a 00 f7 09 6d 65 73 73 | 61 67 65 20 74 6f 20 73 |....mess|age to s|
|00000280| 65 6e 64 20 74 6f 20 72 | 65 6d 6f 74 65 20 67 61 |end to r|emote ga|
|00000290| 6d 65 0d ff 00 10 0a 00 | f7 ff 00 10 0c 00 f7 0d |me......|........|
|000002a0| 00 a4 67 61 6d 65 45 76 | 65 6e 74 52 65 63 6f 72 |..gameEv|entRecor|
|000002b0| 64 ff 00 10 0a 00 f7 0d | 09 65 76 65 6e 74 09 67 |d.......|.event.g|
|000002c0| 61 6d 65 45 76 65 6e 74 | 54 79 70 65 09 ff 00 17 |ameEvent|Type....|
|000002d0| 0c 00 f7 ba ff 00 10 0a | 00 f7 09 67 65 5f 53 65 |........|...ge_Se|
|000002e0| 6e 64 4d 65 73 73 61 67 | 65 0d 09 6d 65 73 73 61 |ndMessag|e..messa|
|000002f0| 67 65 09 53 74 72 32 35 | 35 09 ff 00 17 0c 00 f7 |ge.Str25|5.......|
|00000300| de ff 00 10 0a 00 f7 09 | 65 72 72 6f 72 20 6d 65 |........|error me|
|00000310| 73 73 61 67 65 0d 09 69 | 6e 74 31 09 69 6e 74 65 |ssage..i|nt1.inte|
|00000320| 67 65 72 09 ff 00 17 0c | 00 f7 de ff 00 10 0a 00 |ger.....|........|
|00000330| f7 09 65 72 72 6f 72 20 | 6e 75 6d 62 65 72 0d ff |..error |number..|
|00000340| 00 10 0c 00 f7 0d 01 89 | 0d fc 00 71 01 f0 0e 00 |........|...q....|
|00000350| 71 01 14 01 c4 02 34 f7 | ff 00 10 0c 00 f7 ff 00 |q.....4.|........|
|00000360| 10 0c 00 f7 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |....The |followin|
|00000370| 67 20 73 65 63 74 69 6f | 6e 73 20 64 65 73 63 72 |g sectio|ns descr|
|00000380| 69 62 65 20 65 61 63 68 | 20 66 69 65 6c 64 20 69 |ibe each| field i|
|00000390| 6e 20 64 65 74 61 69 6c | 2e 0d fc 00 55 01 f0 0e |n detail|....U...|
|000003a0| 00 55 01 10 01 c4 07 88 | f7 0d fc 00 55 01 f0 0e |.U......|....U...|
|000003b0| 00 55 01 14 01 c4 06 34 | 07 88 f7 65 76 65 6e 74 |.U.....4|...event|
|000003c0| 20 3a 20 67 61 6d 65 45 | 76 65 6e 74 54 79 70 65 | : gameE|ventType|
|000003d0| 3b 09 7b 20 52 65 61 64 | 2f 57 72 69 74 65 20 7d |;.{ Read|/Write }|
|000003e0| 0d fc 00 71 01 f0 0e 00 | 71 01 14 01 c4 02 34 f7 |...q....|q.....4.|
|000003f0| 54 68 65 20 65 76 65 6e | 74 20 66 69 65 6c 64 20 |The even|t field |
|00000400| 69 73 20 73 65 74 20 61 | 70 70 72 6f 70 72 69 61 |is set a|ppropria|
|00000410| 74 65 6c 79 20 65 76 65 | 72 79 20 74 69 6d 65 20 |tely eve|ry time |
|00000420| 47 61 6d 65 4d 61 73 74 | 65 72 20 63 61 6c 6c 73 |GameMast|er calls|
|00000430| 20 74 68 65 20 72 75 6c | 65 20 62 6f 6f 6b 2e 20 | the rul|e book. |
|00000440| 20 54 68 65 20 76 61 6c | 75 65 20 6f 66 20 74 68 | The val|ue of th|
|00000450| 65 20 65 76 65 6e 74 20 | 66 69 65 6c 64 20 64 65 |e event |field de|
|00000460| 74 65 72 6d 69 6e 65 73 | 20 74 68 65 20 73 65 6d |termines| the sem|
|00000470| 61 6e 74 69 63 73 20 6f | 66 20 74 68 65 20 6d 65 |antics o|f the me|
|00000480| 73 73 61 67 65 20 70 61 | 73 73 65 64 20 74 6f 20 |ssage pa|ssed to |
|00000490| 74 68 65 20 72 75 6c 65 | 20 62 6f 6f 6b 2e 20 20 |the rule| book. |
|000004a0| 54 68 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6f |The defi|nition o|
|000004b0| 66 20 67 61 6d 65 45 76 | 65 6e 74 54 79 70 65 20 |f gameEv|entType |
|000004c0| 69 73 20 61 73 20 66 6f | 6c 6c 6f 77 73 3a d0 0d |is as fo|llows:..|
|000004d0| 0d 00 39 fc 00 7f 01 f0 | 0e 00 7f 01 0e 02 34 02 |..9.....|......4.|
|000004e0| 70 02 a8 02 e0 03 18 03 | 50 05 50 07 14 07 88 f7 |p.......|P.P.....|
|000004f0| ff 00 04 09 00 f7 62 75 | 74 74 6f 6e 53 74 72 20 |......bu|ttonStr |
|00000500| 3d 20 73 74 72 69 6e 67 | 5b 37 5d 0d 00 dd fc 00 |= string|[7].....|
|00000510| 71 01 f0 0e 00 71 81 10 | 01 f0 00 02 a8 03 f0 0d |q....q..|........|
|00000520| 04 28 09 48 f7 ff 00 10 | 0a 02 f7 0d 67 61 6d 65 |.(.H....|....game|
|00000530| 45 76 65 6e 74 52 65 63 | 6f 72 64 ff 00 10 0a 00 |EventRec|ord.....|
|00000540| f7 0d 09 66 69 65 6c 64 | 09 66 69 65 6c 64 54 79 |...field|.fieldTy|
|00000550| 70 65 09 ff 00 17 0c 00 | f7 ba ff 00 10 0a 00 f7 |pe......|........|
|00000560| 09 63 6f 6d 6d 65 6e 74 | 0d 09 66 69 65 6c 64 09 |.comment|..field.|
|00000570| 66 69 65 6c 64 54 79 70 | 65 09 ff 00 17 0c 00 f7 |fieldTyp|e.......|
|00000580| de ff 00 10 0a 00 f7 09 | 63 6f 6d 6d 65 6e 74 0d |........|comment.|
|00000590| 09 66 69 65 6c 64 09 66 | 69 65 6c 64 54 79 70 65 |.field.f|ieldType|
|000005a0| 09 ff 00 17 0c 00 f7 dc | ff 00 10 0a 00 f7 09 63 |........|.......c|
|000005b0| 6f 6d 6d 65 6e 74 0d 09 | 66 69 65 6c 64 09 66 69 |omment..|field.fi|
|000005c0| 65 6c 64 54 79 70 65 09 | ff 00 17 0c 00 f7 db ff |eldType.|........|
|000005d0| 00 10 0a 00 f7 09 63 6f | 6d 6d 65 6e 74 0d ff 00 |......co|mment...|
|000005e0| 10 0a 00 f7 ff 00 10 0c | 00 f7 0d 03 8e ff 00 10 |........|........|
|000005f0| 0e 01 f7 fc 00 55 01 f0 | 0e 00 55 01 10 01 c4 07 |.....U..|..U.....|
|00000600| 88 f7 36 2e 09 50 72 6f | 67 72 61 6d 6d 69 6e 67 |..6..Pro|gramming|
|00000610| 20 52 75 6c 65 73 3a 20 | 48 69 6e 74 73 20 61 6e | Rules: |Hints an|
|00000620| 64 20 54 69 70 73 f9 00 | f7 ff 00 10 0c 00 f7 0d |d Tips..|........|
|00000630| fc 00 71 01 f0 0e 00 71 | 01 14 01 c4 02 34 f7 0d |..q....q|.....4..|
|00000640| 54 68 69 73 20 63 68 61 | 70 74 65 72 20 69 73 20 |This cha|pter is |
|00000650| 61 20 63 6f 6c 6c 65 63 | 74 69 6f 6e 20 6f 66 20 |a collec|tion of |
|00000660| 68 69 6e 74 73 20 61 6e | 64 20 74 69 70 73 20 66 |hints an|d tips f|
|00000670| 6f 72 20 70 72 6f 67 72 | 61 6d 6d 69 6e 67 20 47 |or progr|amming G|
|00000680| 61 6d 65 4d 61 73 74 65 | 72 20 72 75 6c 65 20 62 |ameMaste|r rule b|
|00000690| 6f 6f 6b 73 2e 0d 0d fc | 00 55 01 f0 0e 00 55 01 |ooks....|.U....U.|
|000006a0| 10 01 c4 07 88 f7 ff 00 | 10 0e 00 f7 36 2e 31 2e |........|....6.1.|
|000006b0| 09 47 72 61 66 50 6f 72 | 74 73 2c 20 44 69 61 6c |.GrafPor|ts, Dial|
|000006c0| 6f 67 73 20 61 6e 64 20 | 57 69 6e 64 6f 77 73 ff |ogs and |Windows.|
|000006d0| 00 10 0c 00 f7 0d fc 00 | 71 01 f0 0e 00 71 01 14 |........|q....q..|
|000006e0| 01 c4 02 34 f7 0d 42 65 | 66 6f 72 65 20 63 61 6c |...4..Be|fore cal|
|000006f0| 6c 69 6e 67 20 74 68 65 | 20 72 75 6c 65 20 62 6f |ling the| rule bo|
|00000700| 6f 6b 20 47 61 6d 65 4d | 61 73 74 65 72 20 73 65 |ok GameM|aster se|
|00000710| 74 73 20 74 68 65 20 70 | 6f 72 74 20 74 6f 20 74 |ts the p|ort to t|
|00000720| 68 65 20 67 61 6d 65 20 | 77 69 6e 64 6f 77 2e 20 |he game |window. |
|00000730| 20 54 68 65 20 72 75 6c | 65 20 63 61 6e 20 75 73 | The rul|e can us|
|00000740| 65 20 47 65 74 50 6f 72 | 74 20 74 6f 20 66 69 6e |e GetPor|t to fin|
|00000750| 64 20 74 68 65 20 61 64 | 64 72 65 73 73 20 6f 66 |d the ad|dress of|
|00000760| 20 74 68 69 73 20 47 72 | 61 66 50 6f 72 74 2e 20 | this Gr|afPort. |
|00000770| 20 42 65 63 61 75 73 65 | 20 61 20 57 69 6e 64 6f | Because| a Windo|
|00000780| 77 52 65 63 6f 72 64 20 | 69 73 20 61 6e 20 65 78 |wRecord |is an ex|
|00000790| 74 65 6e 73 69 6f 6e 20 | 6f 66 20 61 20 47 72 61 |tension |of a Gra|
|000007a0| 66 50 6f 72 74 20 61 6e | 64 20 61 20 44 69 61 6c |fPort an|d a Dial|
|000007b0| 6f 67 52 65 63 6f 72 64 | 20 69 73 20 61 6e 20 65 |ogRecord| is an e|
|000007c0| 78 74 65 6e 73 69 6f 6e | 20 6f 66 20 61 20 57 69 |xtension| of a Wi|
|000007d0| 6e 64 6f 77 52 65 63 6f | 72 64 20 74 68 65 20 72 |ndowReco|rd the r|
|000007e0| 75 6c 65 20 63 61 6e 20 | 63 61 73 74 20 74 68 65 |ule can |cast the|
|000007f0| 20 72 65 73 75 6c 74 20 | 6f 66 20 74 68 65 20 47 | result |of the G|
|00000800| 65 74 50 6f 72 74 20 74 | 6f 20 61 20 57 69 6e 64 |etPort t|o a Wind|
|00000810| 6f 77 50 65 65 6b 20 6f | 72 20 44 69 61 6c 6f 67 |owPeek o|r Dialog|
|00000820| f3 50 65 65 6b 2e 20 20 | 4e 6f 74 65 20 74 68 61 |.Peek. |Note tha|
|00000830| 74 20 49 6e 73 69 64 65 | 20 4d 61 63 69 6e 74 6f |t Inside| Macinto|
|00000840| 73 68 20 64 65 66 69 6e | 65 73 20 47 72 61 66 50 |sh defin|es GrafP|
|00000850| 74 72 2c 20 57 69 6e 64 | 6f 77 50 74 72 20 61 6e |tr, Wind|owPtr an|
|00000860| 64 20 44 69 61 6c 6f 67 | 50 74 72 20 74 6f 20 62 |d Dialog|Ptr to b|
|00000870| 65 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 79 70 |e equiva|lent typ|
|00000880| 65 73 2e 0d 0d fc 00 55 | 01 f0 0e 00 55 01 10 01 |es.....U|....U...|
|00000890| c4 07 88 f7 ff 00 10 0e | 00 f7 36 2e 32 2e 09 44 |........|..6.2..D|
|000008a0| 72 61 77 69 6e 67 ff 00 | 10 0c 00 f7 0d fc 00 71 |rawing..|.......q|
|000008b0| 01 f0 0e 00 71 01 14 01 | c4 02 34 f7 0d 4f 6e 65 |....q...|..4..One|
|000008c0| 20 6f 66 20 74 68 65 20 | 68 61 72 64 65 73 74 20 | of the |hardest |
|000008d0| 70 61 72 74 73 20 6f 66 | 20 77 72 69 74 69 6e 67 |parts of| writing|
|000008e0| 20 61 20 72 75 6c 65 20 | 62 6f 6f 6b 20 69 73 20 | a rule |book is |
|000008f0| 67 69 76 69 6e 67 20 74 | 68 65 20 75 73 65 72 20 |giving t|he user |
|00000900| 69 74 65 6d 20 75 70 64 | 61 74 65 20 70 72 6f 63 |item upd|ate proc|
|00000910| 65 64 75 72 65 73 20 65 | 6e 6f 75 67 68 20 69 6e |edures e|nough in|
|00000920| 66 6f 72 6d 61 74 69 6f | 6e 20 74 6f 20 64 72 61 |formatio|n to dra|
|00000930| 77 20 74 68 65 20 69 74 | 65 6d 2e 20 20 54 68 65 |w the it|em. The|
|00000940| 20 75 73 65 72 20 69 74 | 65 6d 20 75 70 64 61 74 | user it|em updat|
|00000950| 65 20 70 72 6f 63 65 64 | 75 72 65 20 68 61 73 20 |e proced|ure has |
|00000960| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 69 6e |the foll|owing in|
|00000970| 74 65 72 66 61 63 65 3a | d0 0d 0d 02 68 57 68 65 |terface:|....hWhe|
|00000980| 6e 20 72 75 6e 6e 69 6e | 67 20 47 61 6d 65 4d 61 |n runnin|g GameMa|
|00000990| 73 74 65 72 20 74 68 65 | 20 75 73 65 72 20 73 65 |ster the| user se|
|000009a0| 65 73 20 61 20 6d 65 6e | 75 20 74 68 61 74 20 61 |es a men|u that a|
|000009b0| 6c 6c 6f 77 73 20 74 68 | 65 6d 20 74 6f 20 73 74 |llows th|em to st|
|000009c0| 61 72 74 20 20 61 20 67 | 61 6d 65 20 75 73 69 6e |art a g|ame usin|
|000009d0| 67 20 61 6e 79 20 6f 66 | 20 74 68 65 20 61 76 61 |g any of| the ava|
|000009e0| 69 6c 61 62 6c 65 20 72 | 75 6c 65 20 62 6f 6f 6b |ilable r|ule book|
|000009f0| 73 2e 20 20 54 68 75 73 | 20 65 61 63 68 20 67 61 |s. Thus| each ga|
|00000a00| 6d 65 20 69 73 20 70 6c | 61 79 65 64 20 61 63 63 |me is pl|ayed acc|
|00000a10| 6f 72 64 69 6e 67 20 74 | 6f 20 61 20 70 61 72 74 |ording t|o a part|
|00000a20| 69 63 75 6c 61 72 20 72 | 75 6c 65 20 62 6f 6f 6b |icular r|ule book|
|00000a30| 2e 20 20 41 20 77 69 6e | 64 6f 77 20 69 73 20 63 |. A win|dow is c|
|00000a40| 72 65 61 74 65 64 20 69 | 6e 20 77 68 69 63 68 20 |reated i|n which |
|00000a50| 74 68 65 20 67 61 6d 65 | 20 69 73 20 64 69 73 70 |the game| is disp|
|00000a60| 6c 61 79 65 64 2e 20 20 | 54 68 65 20 65 78 61 63 |layed. |The exac|
|00000a70| 74 20 6f 70 65 72 61 74 | 69 6f 6e 20 6f 66 20 74 |t operat|ion of t|
|00000a80| 68 69 73 20 ff 00 10 0c | 02 f7 67 61 6d 65 20 77 |his ....|..game w|
|00000a90| 69 6e 64 6f 77 ff 00 10 | 0c 00 f7 20 69 73 20 64 |indow...|... is d|
|00000aa0| 65 74 65 72 6d 69 6e 65 | 64 20 62 79 20 74 68 65 |etermine|d by the|
|00000ab0| 20 72 75 6c 65 20 62 6f | 6f 6b 2e 0d 0d fc 00 55 | rule bo|ok.....U|
|00000ac0| 01 f0 0e 00 55 01 10 01 | c4 07 88 f7 ff 00 10 0e |....U...|........|
|00000ad0| 00 f7 31 2e 31 2e 09 4e | 65 74 77 6f 72 6b 20 43 |..1.1..N|etwork C|
|00000ae0| 61 70 61 62 69 6c 69 74 | 69 65 73 ff 00 10 0c 00 |apabilit|ies.....|
|00000af0| f7 0d fc 00 71 01 f0 0e | 00 71 01 14 01 c4 02 34 |....q...|.q.....4|
|00000b00| f7 0d 41 6e 79 20 70 72 | 6f 70 65 72 6c 79 20 77 |..Any pr|operly w|
|00000b10| 72 69 74 74 65 6e 20 47 | 61 6d 65 4d 61 73 74 65 |ritten G|ameMaste|
|00000b20| 72 20 72 75 6c 65 20 62 | 6f 6f 6b 20 77 69 6c 6c |r rule b|ook will|
|00000b30| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 67 | automat|ically g|
|00000b40| 65 6e 65 72 61 74 65 20 | 6e 65 74 77 6f 72 6b 20 |enerate |network |
|00000b50| 63 61 70 61 62 6c 65 20 | 67 61 6d 65 73 2e 20 20 |capable |games. |
|00000b60| 54 68 65 20 72 75 6c 65 | 20 62 6f 6f 6b 73 20 68 |The rule| books h|
|00000b70| 61 76 65 20 61 20 76 65 | 72 79 20 73 69 6d 70 6c |ave a ve|ry simpl|
|00000b80| 65 20 6d 6f 64 65 6c 20 | 6f 66 20 6e 65 74 77 6f |e model |of netwo|
|00000b90| 72 6b 69 6e 67 2e 20 20 | 47 61 6d 65 4d 61 73 74 |rking. |GameMast|
|00000ba0| 65 72 20 68 61 6e 64 6c | 65 73 20 61 6c 6c 20 74 |er handl|es all t|
|00000bb0| 68 65 20 75 73 75 61 6c | 20 68 6f 72 72 6f 72 20 |he usual| horror |
|00000bc0| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 20 |associat|ed with |
|00000bd0| 6e 65 74 77 6f 72 6b 20 | 70 72 6f 67 72 61 6d 6d |network |programm|
|00000be0| 69 6e 67 2e 0d 01 f5 ff | 00 10 0e 01 f7 32 2e 09 |ing.....|.....2..|
|00000bf0| 41 6e 20 4f 76 65 72 76 | 69 65 77 20 6f 66 20 52 |An Overv|iew of R|
|00000c00| 75 6c 65 20 42 6f 6f 6b | 73 f9 00 f7 ff 00 10 0c |ule Book|s.......|
|00000c10| 00 f7 0d fc 00 71 01 f0 | 0e 00 71 01 14 01 c4 02 |.....q..|..q.....|
|00000c20| 34 f7 0d 41 20 47 61 6d | 65 4d 61 73 74 65 72 20 |4..A Gam|eMaster |
|00000c30| 72 75 6c 65 20 62 6f 6f | 6b 20 69 73 20 61 20 66 |rule boo|k is a f|
|00000c40| 69 6c 65 20 6f 66 20 74 | 79 70 65 20 d4 47 4d 52 |ile of t|ype .GMR|
|00000c50| 42 d5 20 61 6e 64 20 63 | 72 65 61 74 6f 72 20 d4 |B. and c|reator .|
|00000c60| 47 4d 53 54 d5 2e 20 20 | 49 74 73 20 64 61 74 61 |GMST.. |Its data|
|00000c70| 20 66 6f 72 6b 20 73 68 | 6f 75 6c 64 20 62 65 20 | fork sh|ould be |
|00000c80| 65 6d 70 74 79 2e 20 20 | 54 68 65 20 72 65 73 6f |empty. |The reso|
|00000c90| 75 72 63 65 20 66 6f 72 | 6b 20 63 6f 6e 74 61 69 |urce for|k contai|
|00000ca0| 6e 73 20 61 20 6e 75 6d | 62 65 72 20 6f 66 20 66 |ns a num|ber of f|
|00000cb0| 69 78 65 64 20 72 65 73 | 6f 75 72 63 65 73 20 74 |ixed res|ources t|
|00000cc0| 68 61 74 20 64 65 73 63 | 72 69 62 65 20 74 68 65 |hat desc|ribe the|
|00000cd0| 20 67 61 6d 65 2c 20 61 | 20 72 65 73 6f 75 72 63 | game, a| resourc|
|00000ce0| 65 20 74 68 61 74 20 63 | 6f 6e 74 61 69 6e 73 20 |e that c|ontains |
|00000cf0| 74 68 65 20 63 6f 64 65 | 20 74 68 61 74 20 65 6d |the code| that em|
|00000d00| 62 6f 64 69 65 73 20 74 | 68 65 20 67 61 6d 65 20 |bodies t|he game |
|00000d10| 72 75 6c 65 73 2c 20 61 | 6e 64 20 61 6e 20 61 72 |rules, a|nd an ar|
|00000d20| 62 69 74 72 61 72 79 20 | 6e 75 6d 62 65 72 20 6f |bitrary |number o|
|00000d30| 66 20 72 75 6c 65 20 62 | 6f 6f 6b 20 72 65 73 6f |f rule b|ook reso|
|00000d40| 75 72 63 65 73 2e 20 20 | 41 20 6d 6f 72 65 20 74 |urces. |A more t|
|00000d50| 68 6f 72 6f 75 67 68 20 | 64 65 73 63 72 69 70 74 |horough |descript|
|00000d60| 69 6f 6e 20 6f 66 20 74 | 68 65 20 72 65 73 6f 75 |ion of t|he resou|
|00000d70| 72 63 65 20 66 6f 72 6b | d5 73 20 63 6f 6e 74 65 |rce fork|.s conte|
|00000d80| 6e 74 73 20 63 61 6e 20 | 62 65 20 66 6f 75 6e 64 |nts can |be found|
|00000d90| 20 69 6e 20 43 68 61 70 | 74 65 72 20 33 2e 0d 0d | in Chap|ter 3...|
|00000da0| fc 00 55 01 f0 0e 00 55 | 01 10 01 c4 07 88 f7 ff |..U....U|........|
|00000db0| 00 10 0e 00 f7 32 2e 31 | 2e 09 47 61 6d 65 20 45 |.....2.1|..Game E|
|00000dc0| 76 65 6e 74 73 ff 00 10 | 0c 00 f7 0d fc 00 71 01 |vents...|......q.|
|00000dd0| f0 0e 00 71 01 14 01 c4 | 02 34 f7 0d 03 47 47 61 |...q....|.4...GGa|
|00000de0| 6d 65 4d 61 73 74 65 72 | 20 77 6f 72 6b 73 20 6f |meMaster| works o|
|00000df0| 6e 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |n the fo|llowing |
|00000e00| 70 72 69 6e 63 69 70 6c | 65 2e 20 20 57 68 65 6e |principl|e. When|
|00000e10| 20 6c 61 75 6e 63 68 65 | 64 20 28 61 6e 64 20 73 | launche|d (and s|
|00000e20| 75 62 73 65 71 75 65 6e | 74 6c 79 20 77 68 65 6e |ubsequen|tly when|
|00000e30| 20 69 64 6c 65 29 20 69 | 74 20 63 72 65 61 74 65 | idle) i|t create|
|00000e40| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 61 6c 6c 20 |s a list| of all |
|00000e50| 74 68 65 20 72 75 6c 65 | 20 62 6f 6f 6b 73 20 69 |the rule| books i|
|00000e60| 6e 20 74 68 65 20 66 6f | 6c 64 65 72 20 66 72 6f |n the fo|lder fro|
|00000e70| 6d 20 77 68 69 63 68 20 | 69 74 20 77 61 73 20 6c |m which |it was l|
|00000e80| 61 75 6e 63 68 65 64 2e | 20 20 54 68 65 20 75 73 |aunched.| The us|
|00000e90| 65 72 20 63 61 6e 20 74 | 68 65 6e 20 73 65 6c 65 |er can t|hen sele|
|00000ea0| 63 74 20 4e 65 77 20 47 | 61 6d 65 20 61 6e 64 20 |ct New G|ame and |
|00000eb0| 63 68 6f 6f 73 65 20 74 | 68 65 20 72 75 6c 65 20 |choose t|he rule |
|00000ec0| 62 6f 6f 6b 20 74 68 61 | 74 20 74 68 65 79 20 77 |book tha|t they w|
|00000ed0| 6f 75 6c 64 20 6c 69 6b | 65 20 74 6f 20 75 73 65 |ould lik|e to use|
|00000ee0| 2e 20 20 47 61 6d 65 4d | 61 73 74 65 72 20 6f 70 |. GameM|aster op|
|00000ef0| 65 6e 73 20 74 68 65 20 | 72 75 6c 65 20 62 6f 6f |ens the |rule boo|
|00000f00| 6b d5 73 20 72 65 73 6f | 75 72 63 65 20 66 6f 72 |k.s reso|urce for|
|00000f10| 6b 2c 20 63 68 65 63 6b | 73 20 69 74 20 66 6f 72 |k, check|s it for|
|00000f20| 20 69 6e 74 65 67 72 69 | 74 79 2c 20 61 6e 64 20 | integri|ty, and |
|00000f30| 74 68 65 6e 20 6c 6f 61 | 64 73 20 74 68 65 20 72 |then loa|ds the r|
|00000f40| 75 6c 65 20 62 6f 6f 6b | d5 73 20 63 6f 64 65 2e |ule book|.s code.|
|00000f50| 20 20 46 72 6f 6d 20 74 | 68 65 6e 20 6f 6e 20 74 | From t|hen on t|
|00000f60| 68 65 20 64 69 61 6c 6f | 67 20 62 65 74 77 65 65 |he dialo|g betwee|
|00000f70| 6e 20 47 61 6d 65 4d 61 | 73 74 65 72 20 61 6e 64 |n GameMa|ster and|
|00000f80| 20 74 68 65 20 72 75 6c | 65 20 62 6f 6f 6b 20 69 | the rul|e book i|
|00000f90| 73 20 62 61 73 65 64 20 | 61 72 6f 75 6e 64 20 47 |s based |around G|
|00000fa0| 61 6d 65 4d 61 73 74 65 | 72 20 63 61 6c 6c 69 6e |ameMaste|r callin|
|00000fb0| 67 20 74 68 65 20 72 75 | 6c 65 20 62 6f 6f 6b 20 |g the ru|le book |
|00000fc0| 77 68 65 6e 65 76 65 72 | 20 63 65 72 74 61 69 6e |whenever| certain|
|00000fd0| 20 65 76 65 6e 74 73 20 | 68 61 70 70 65 6e 2e 20 | events |happen. |
|00000fe0| 20 55 6e 6c 69 6b 65 20 | 61 20 73 74 61 6e 64 61 | Unlike |a standa|
|00000ff0| 72 64 20 4d 61 63 69 6e | 74 6f 73 68 20 61 70 70 |rd Macin|tosh app|
|00001000| 6c 69 63 61 74 69 6f 6e | 2c 20 74 68 65 20 72 75 |lication|, the ru|
|00001010| 6c 65 20 62 6f 6f 6b 20 | 69 73 20 6e 6f 74 20 63 |le book |is not c|
|00001020| 61 6c 6c 65 64 20 66 6f | 72 20 74 72 69 76 69 61 |alled fo|r trivia|
|00001030| 6c 20 65 76 65 6e 74 73 | 2e 20 20 47 61 6d 65 4d |l events|. GameM|
|00001040| 61 73 74 65 72 20 6f 6e | 6c 79 20 63 61 6c 6c 73 |aster on|ly calls|
|00001050| 20 74 68 65 20 72 75 6c | 65 20 62 6f 6f 6b 20 66 | the rul|e book f|
|00001060| 6f 72 20 65 76 65 6e 74 | 73 20 74 68 61 74 20 69 |or event|s that i|
|00001070| 74 20 63 61 6e d5 74 20 | 68 61 6e 64 6c 65 2e 20 |t can.t |handle. |
|00001080| 20 41 20 63 6f 6d 70 6c | 65 74 65 20 64 65 73 63 | A compl|ete desc|
|00001090| 72 69 70 74 69 6f 6e 20 | 6f 66 20 65 61 63 68 20 |ription |of each |
|000010a0| 65 76 65 6e 74 20 63 61 | 6e 20 62 65 20 66 6f 75 |event ca|n be fou|
|000010b0| 6e 64 20 69 6e 20 43 68 | 61 70 74 65 72 20 35 2e |nd in Ch|apter 5.|
|000010c0| 20 20 49 6e 20 61 64 64 | 69 74 69 6f 6e 20 72 75 | In add|ition ru|
|000010d0| 6c 65 20 62 6f 6f 6b 73 | 20 63 61 6e 20 69 6e 64 |le books| can ind|
|000010e0| 69 63 61 74 65 20 74 6f | 20 47 61 6d 65 4d 61 73 |icate to| GameMas|
|000010f0| 74 65 72 20 74 68 61 74 | 20 74 68 65 79 20 61 72 |ter that| they ar|
|00001100| 65 20 6e 6f 74 20 69 6e | 74 65 72 65 73 74 65 64 |e not in|terested|
|00001110| 20 69 6e 20 73 70 65 63 | 69 66 69 63 20 65 76 65 | in spec|ific eve|
|00001120| 6e 74 73 2e 0d 03 22 0d | fc 00 55 01 f0 0e 00 55 |nts...".|..U....U|
|00001130| 01 10 01 c4 07 88 f7 ff | 00 10 0e 00 f7 32 2e 32 |........|.....2.2|
|00001140| 2e 09 47 61 6d 65 20 44 | 61 74 61 20 53 74 72 75 |..Game D|ata Stru|
|00001150| 63 74 75 72 65 73 ff 00 | 10 0c 00 f7 0d fc 00 71 |ctures..|.......q|
|00001160| 01 f0 0e 00 71 01 14 01 | c4 02 34 f7 0d 45 61 63 |....q...|..4..Eac|
|00001170| 68 20 74 69 6d 65 20 47 | 61 6d 65 4d 61 73 74 65 |h time G|ameMaste|
|00001180| 72 20 63 61 6c 6c 73 20 | 61 20 72 75 6c 65 20 62 |r calls |a rule b|
|00001190| 6f 6f 6b 20 69 74 20 70 | 61 73 73 65 73 20 61 20 |ook it p|asses a |
|000011a0| 72 65 66 65 72 65 6e 63 | 65 20 74 6f 20 61 20 64 |referenc|e to a d|
|000011b0| 61 74 61 20 73 74 72 75 | 63 74 75 72 65 20 6b 6e |ata stru|cture kn|
|000011c0| 6f 77 6e 20 61 73 20 74 | 68 65 20 ff 00 10 0c 02 |own as t|he .....|
|000011d0| f7 67 61 6d 65 20 65 76 | 65 6e 74 20 72 65 63 6f |.game ev|ent reco|
|000011e0| 72 64 ff 00 10 0c 00 f7 | 2e 20 20 54 68 69 73 20 |rd......|. This |
|000011f0| 72 65 63 6f 72 64 20 63 | 6f 6e 74 61 69 6e 73 20 |record c|ontains |
|00001200| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 74 65 6c 6c |informat|ion tell|
|00001210| 69 6e 67 20 74 68 65 20 | 72 75 6c 65 20 62 6f 6f |ing the |rule boo|
|00001220| 6b 20 77 68 61 74 20 74 | 6f 20 64 6f 2e 20 20 54 |k what t|o do. T|
|00001230| 68 65 20 72 75 6c 65 20 | 62 6f 6f 6b 20 63 61 6e |he rule |book can|
|00001240| 20 61 6c 73 6f 20 63 68 | 61 6e 67 65 20 74 68 65 | also ch|ange the|
|00001250| 20 72 65 63 6f 72 64 20 | 69 6e 20 6f 72 64 65 72 | record |in order|
|00001260| 20 74 6f 20 70 61 73 73 | 20 69 6e 66 6f 72 6d 61 | to pass| informa|
|00001270| 74 69 6f 6e 20 62 61 63 | 6b 20 74 6f 20 47 61 6d |tion bac|k to Gam|
|00001280| 65 4d 61 73 74 65 72 2e | 20 20 54 68 65 20 73 74 |eMaster.| The st|
|00001290| 72 75 63 74 75 72 65 20 | 6f 66 20 74 68 65 20 67 |ructure |of the g|
|000012a0| 61 6d 65 20 65 76 65 6e | 74 20 72 65 63 6f 72 64 |ame even|t record|
|000012b0| 20 69 73 20 64 65 73 63 | 72 69 62 65 64 20 69 6e | is desc|ribed in|
|000012c0| 20 43 68 61 70 74 65 72 | 20 34 2e 0d 54 68 65 20 | Chapter| 4..The |
|000012d0| 66 69 72 73 74 20 74 69 | 6d 65 20 69 74 20 63 61 |first ti|me it ca|
|000012e0| 6c 6c 73 20 61 20 72 75 | 6c 65 20 62 6f 6f 6b 20 |lls a ru|le book |
|000012f0| 47 61 6d 65 4d 61 73 74 | 65 72 20 61 6c 6c 6f 77 |GameMast|er allow|
|00001300| 73 20 74 68 65 20 72 75 | 6c 65 20 62 6f 6f 6b 20 |s the ru|le book |
|00001310| 74 6f 20 73 74 6f 72 65 | 20 61 20 34 20 62 79 74 |to store| a 4 byt|
|00001320| 65 20 71 75 61 6e 74 69 | 74 79 20 69 6e 74 6f 20 |e quanti|ty into |
|00001330| 74 68 65 20 67 61 6d 65 | 20 65 76 65 6e 74 20 72 |the game| event r|
|00001340| 65 63 6f 72 64 d5 73 20 | 67 6c 6f 62 61 6c 73 20 |ecord.s |globals |
|00001350| 66 69 65 6c 64 2e 20 20 | 45 76 65 72 79 20 73 75 |field. |Every su|
|00001360| 62 73 65 71 75 65 6e 74 | 20 74 69 6d 65 20 47 61 |bsequent| time Ga|
|00001370| 6d 65 4d 61 73 74 65 72 | 20 63 61 6c 6c 73 20 74 |meMaster| calls t|
|00001380| 68 65 20 72 75 6c 65 20 | 62 6f 6f 6b 20 69 74 20 |he rule |book it |
|00001390| 77 69 6c 6c 20 70 61 73 | 73 20 62 61 63 6b 20 74 |will pas|s back t|
|000013a0| 68 61 74 20 76 61 6c 75 | 65 20 69 6e 20 74 68 65 |hat valu|e in the|
|000013b0| 20 67 6c 6f 62 61 6c 73 | 20 66 69 65 6c 64 20 6f | globals| field o|
|000013c0| 66 20 74 68 65 20 67 61 | 6d 65 20 65 76 65 6e 74 |f the ga|me event|
|000013d0| 20 72 65 63 6f 72 64 2e | 20 20 54 68 69 73 20 61 | record.| This a|
|000013e0| 6c 6c 6f 77 73 20 74 68 | 65 20 72 75 6c 65 20 62 |llows th|e rule b|
|000013f0| 6f 6f 6b 20 74 6f 20 63 | 72 65 61 74 65 20 61 20 |ook to c|reate a |
|00001400| 68 61 6e 64 6c 65 20 6f | 72 20 70 6f 69 6e 74 65 |handle o|r pointe|
|00001410| 72 20 74 6f 20 69 74 73 | 20 67 6c 6f 62 61 6c 20 |r to its| global |
|00001420| 76 61 72 69 61 62 6c 65 | 73 20 61 6e 64 20 61 63 |variable|s and ac|
|00001430| 63 65 73 73 20 74 68 65 | 6d 20 6f 6e 20 65 61 63 |cess the|m on eac|
|00001440| 68 20 65 76 65 6e 74 2e | 0d 02 26 0d fc 00 71 01 |h event.|..&...q.|
|00001450| f0 0e 00 71 01 14 01 c4 | 02 34 f7 47 61 6d 65 4d |...q....|.4.GameM|
|00001460| 61 73 74 65 72 20 72 75 | 6c 65 20 62 6f 6f 6b 73 |aster ru|le books|
|00001470| 20 63 61 6e 20 62 65 20 | 63 6f 6e 6e 65 63 74 65 | can be |connecte|
|00001480| 64 20 74 6f 20 6f 6e 65 | 20 61 6e 6f 74 68 65 72 |d to one| another|
|00001490| 20 61 63 72 6f 73 73 20 | 6e 65 74 77 6f 72 6b 73 | across |networks|
|000014a0| 2e 20 20 49 74 20 77 6f | 75 6c 64 20 62 65 20 76 |. It wo|uld be v|
|000014b0| 65 72 79 20 62 61 64 20 | 69 66 20 47 61 6d 65 4d |ery bad |if GameM|
|000014c0| 61 73 74 65 72 20 63 6f | 6e 6e 65 63 74 65 64 20 |aster co|nnected |
|000014d0| 74 77 6f 20 69 6e 63 6f | 6d 70 61 74 69 62 6c 65 |two inco|mpatible|
|000014e0| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 61 20 72 75 | version| of a ru|
|000014f0| 6c 65 20 62 6f 6f 6b 2e | 20 20 54 6f 20 70 72 65 |le book.| To pre|
|00001500| 76 65 6e 74 20 74 68 69 | 73 20 74 68 65 20 72 75 |vent thi|s the ru|
|00001510| 6c 65 20 62 6f 6f 6b 20 | 69 6e 64 69 63 61 74 65 |le book |indicate|
|00001520| 73 20 74 6f 20 47 61 6d | 65 4d 61 73 74 65 72 20 |s to Gam|eMaster |
|00001530| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 76 65 |the foll|owing ve|
|00001540| 72 73 69 6f 6e 20 6e 75 | 6d 62 65 72 73 3a d0 0d |rsion nu|mbers:..|
|00001550| fc 00 8d 01 f0 0e 00 7f | 01 10 01 c4 f7 a5 09 54 |........|.......T|
|00001560| 68 65 20 72 75 6c 65 20 | 62 6f 6f 6b 20 76 65 72 |he rule |book ver|
|00001570| 73 69 6f 6e 20 6e 75 6d | 62 65 72 2e 0d a5 09 54 |sion num|ber....T|
|00001580| 68 65 20 6f 6c 64 65 73 | 74 20 76 65 72 73 69 6f |he oldes|t versio|
|00001590| 6e 20 6e 75 6d 62 65 72 | 20 6f 66 20 74 68 65 20 |n number| of the |
|000015a0| 72 75 6c 65 20 62 6f 6f | 6b 20 74 6f 20 77 68 69 |rule boo|k to whi|
|000015b0| 63 68 20 74 68 69 73 20 | 72 75 6c 65 20 62 6f 6f |ch this |rule boo|
|000015c0| 6b 20 63 61 6e 20 62 65 | 20 73 61 66 65 6c 79 20 |k can be| safely |
|000015d0| 63 6f 6e 6e 65 63 74 65 | 64 2e 0d a5 09 54 68 65 |connecte|d....The|
|000015e0| 20 76 65 72 73 69 6f 6e | 20 6e 75 6d 62 65 72 20 | version| number |
|000015f0| 6f 66 20 74 68 65 20 47 | 61 6d 65 4d 61 73 74 65 |of the G|ameMaste|
|00001600| 72 20 74 68 61 74 20 74 | 68 69 73 20 72 75 6c 65 |r that t|his rule|
|00001610| 20 62 6f 6f 6b 20 77 61 | 73 20 77 72 69 74 74 65 | book wa|s writte|
|00001620| 6e 20 66 6f 72 2e 0d a5 | 09 54 68 65 20 6f 6c 64 |n for...|.The old|
|00001630| 65 73 74 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 47 |est vers|ion of G|
|00001640| 61 6d 65 4d 61 73 74 65 | 72 20 77 69 74 68 20 77 |ameMaste|r with w|
|00001650| 68 69 63 68 20 74 68 69 | 73 20 72 75 6c 65 20 62 |hich thi|s rule b|
|00001660| 6f 6f 6b 20 63 61 6e 20 | 62 65 20 75 73 65 64 2e |ook can |be used.|
|00001670| 0d 02 5a ff 00 10 0e 01 | f7 fc 00 55 01 f0 0e 00 |..Z.....|...U....|
|00001680| 55 01 10 01 c4 07 88 f7 | 33 2e 09 54 68 65 20 52 |U.......|3..The R|
|00001690| 65 73 6f 75 72 63 65 73 | f9 00 f7 ff 00 10 0c 00 |esources|........|
|000016a0| f7 0d fc 00 71 01 f0 0e | 00 71 01 14 01 c4 02 34 |....q...|.q.....4|
|000016b0| f7 0d 54 68 65 20 72 65 | 73 6f 75 72 63 65 73 20 |..The re|sources |
|000016c0| 69 6e 20 61 20 72 75 6c | 65 20 62 6f 6f 6b d5 73 |in a rul|e book.s|
|000016d0| 20 72 65 73 6f 75 72 63 | 65 20 66 6f 72 6b 20 63 | resourc|e fork c|
|000016e0| 61 6e 20 62 65 20 64 69 | 76 69 64 65 64 20 69 6e |an be di|vided in|
|000016f0| 74 6f 20 74 68 72 65 65 | 20 63 6c 61 73 73 65 73 |to three| classes|
|00001700| 3a 20 20 72 65 71 75 69 | 72 65 64 20 72 65 73 6f |: requi|red reso|
|00001710| 75 72 63 65 73 2c 20 6f | 70 74 69 6f 6e 61 6c 20 |urces, o|ptional |
|00001720| 72 65 73 6f 75 72 63 65 | 73 20 61 6e 64 20 72 75 |resource|s and ru|
|00001730| 6c 65 20 62 6f 6f 6b 20 | 72 65 73 6f 75 72 63 65 |le book |resource|
|00001740| 73 2e 20 20 4d 75 63 68 | 20 6f 66 20 74 68 65 20 |s. Much| of the |
|00001750| 72 65 73 74 20 6f 66 20 | 74 68 69 73 20 63 68 61 |rest of |this cha|
|00001760| 70 74 65 72 20 69 73 20 | 64 65 64 69 63 61 74 65 |pter is |dedicate|
|00001770| 64 20 74 6f 20 64 65 73 | 63 72 69 62 69 6e 67 20 |d to des|cribing |
|00001780| 74 68 65 20 72 65 71 75 | 69 72 65 64 20 72 65 73 |the requ|ired res|
|00001790| 6f 75 72 63 65 73 2c 20 | 69 6e 20 70 61 72 74 69 |ources, |in parti|
|000017a0| 63 75 6c 61 72 20 74 68 | 65 20 47 4d 52 5a f9 00 |cular th|e GMRZ..|
|000017b0| f7 20 72 65 73 6f 75 72 | 63 65 2e 20 20 20 54 68 |. resour|ce. Th|
|000017c0| 65 20 66 69 6e 61 6c 20 | 73 65 63 74 69 6f 6e 20 |e final |section |
|000017d0| 64 65 74 61 69 6c 73 20 | 74 68 65 20 6f 70 74 69 |details |the opti|
|000017e0| 6f 6e 61 6c 20 72 65 73 | 6f 75 72 63 65 73 2e 20 |onal res|ources. |
|000017f0| 20 52 75 6c 65 20 62 6f | 6f 6b 20 72 65 73 6f 75 | Rule bo|ok resou|
|00001800| 72 63 65 73 20 61 72 65 | 20 65 6e 74 69 72 65 6c |rces are| entirel|
|00001810| 79 20 72 75 6c 65 20 62 | 6f 6f 6b 20 64 65 70 65 |y rule b|ook depe|
|00001820| 6e 64 65 6e 74 2e 20 20 | 48 6f 77 65 76 65 72 2c |ndent. |However,|
|00001830| 20 69 74 20 69 73 20 6e | 65 63 65 73 73 61 72 79 | it is n|ecessary|
|00001840| 20 74 6f 20 66 69 72 73 | 74 20 64 65 73 63 72 69 | to firs|t descri|
|00001850| 62 65 20 68 6f 77 20 72 | 65 71 75 69 72 65 64 2c |be how r|equired,|
|00001860| 20 6f 70 74 69 6f 6e 61 | 6c 20 61 6e 64 20 72 75 | optiona|l and ru|
|00001870| 6c 65 20 62 6f 6f 6b 20 | 72 65 73 6f 75 72 63 65 |le book |resource|
|00001880| 73 20 61 72 65 20 64 69 | 73 74 69 6e 67 75 69 73 |s are di|stinguis|
|00001890| 68 65 64 2e 0d 0d fc 00 | 55 01 f0 0e 00 55 01 10 |hed.....|U....U..|
|000018a0| 01 c4 07 88 f7 ff 00 10 | 0e 00 f7 33 2e 31 2e 09 |........|...3.1..|
|000018b0| 52 65 73 6f 75 72 63 65 | 20 49 44 20 41 6c 6c 6f |Resource| ID Allo|
|000018c0| 63 61 74 69 6f 6e ff 00 | 10 0c 00 f7 0d 01 cf fc |cation..|........|
|000018d0| 00 71 01 f0 0e 00 71 01 | 14 01 c4 02 34 f7 0d 54 |.q....q.|....4..T|
|000018e0| 68 65 20 72 65 73 6f 75 | 72 63 65 20 49 44 73 20 |he resou|rce IDs |
|000018f0| 6c 65 73 73 20 74 68 61 | 6e 20 31 32 38 20 61 72 |less tha|n 128 ar|
|00001900| 65 20 72 65 73 65 72 76 | 65 64 20 62 79 20 74 68 |e reserv|ed by th|
|00001910| 65 20 73 79 73 74 65 6d | 2e 0d 54 68 65 20 72 65 |e system|..The re|
|00001920| 73 6f 75 72 63 65 20 49 | 44 73 20 62 65 74 77 65 |source I|Ds betwe|
|00001930| 65 6e 20 31 32 38 20 61 | 6e 64 20 39 39 39 20 61 |en 128 a|nd 999 a|
|00001940| 72 65 20 72 65 73 65 72 | 76 65 64 20 66 6f 72 20 |re reser|ved for |
|00001950| 75 73 65 20 62 79 20 47 | 61 6d 65 4d 61 73 74 65 |use by G|ameMaste|
|00001960| 72 2e 20 20 54 68 69 73 | 20 6c 65 61 76 65 73 20 |r. This| leaves |
|00001970| 74 68 65 20 72 65 73 6f | 75 72 63 65 20 49 44 20 |the reso|urce ID |
|00001980| 72 61 6e 67 65 20 31 30 | 30 30 20 74 6f 20 33 32 |range 10|00 to 32|
|00001990| 37 36 37 20 66 6f 72 20 | 75 73 65 20 62 79 20 74 |767 for |use by t|
|000019a0| 68 65 20 72 75 6c 65 20 | 62 6f 6f 6b 20 72 65 73 |he rule |book res|
|000019b0| 6f 75 72 63 65 73 2e 0d | 4e 6f 74 65 20 74 68 61 |ources..|Note tha|
|000019c0| 74 20 61 6c 6c 20 72 65 | 71 75 69 72 65 64 20 61 |t all re|quired a|
|000019d0| 6e 64 20 6f 70 74 69 6f | 6e 61 6c 20 72 65 73 6f |nd optio|nal reso|
|000019e0| 75 72 63 65 73 20 68 61 | 76 65 20 49 44 73 20 62 |urces ha|ve IDs b|
|000019f0| 65 74 77 65 65 6e 20 31 | 32 38 20 61 6e 64 20 39 |etween 1|28 and 9|
|00001a00| 39 39 2e 20 20 41 6c 73 | 6f 20 6e 6f 74 65 20 74 |99. Als|o note t|
|00001a10| 68 61 74 20 74 68 65 20 | 72 75 6c 65 20 62 6f 6f |hat the |rule boo|
|00001a20| 6b 20 6d 61 79 20 63 6f | 6e 74 61 69 6e 20 63 65 |k may co|ntain ce|
|00001a30| 72 74 61 69 6e 20 73 79 | 73 74 65 6d 20 72 65 73 |rtain sy|stem res|
|00001a40| 6f 75 72 63 65 73 20 77 | 69 74 68 20 49 44 73 20 |ources w|ith IDs |
|00001a50| 6f 75 74 73 69 64 65 20 | 6f 66 20 74 68 65 20 61 |outside |of the a|
|00001a60| 6c 6c 6f 63 61 74 65 64 | 20 72 61 6e 67 65 2c 20 |llocated| range, |
|00001a70| 66 6f 72 20 65 78 61 6d | 70 6c 65 20 d4 76 65 72 |for exam|ple .ver|
|00001a80| 73 d5 20 31 20 61 6e 64 | 20 32 2c 20 d4 49 43 4e |s. 1 and| 2, .ICN|
|00001a90| 23 d5 ca 2d 31 36 34 35 | f9 00 f7 35 2e 0d 02 2b |#..-1645|...5...+|
|00001aa0| 0d fc 00 55 01 f0 0e 00 | 55 01 10 01 c4 07 88 f7 |...U....|U.......|
|00001ab0| ff 00 10 0e 00 f7 33 2e | 32 2e 09 52 65 71 75 69 |......3.|2..Requi|
|00001ac0| 72 65 64 20 52 65 73 6f | 75 72 63 65 73 ff 00 10 |red Reso|urces...|
|00001ad0| 0c 00 f7 0d fc 00 71 01 | f0 0e 00 71 01 14 01 c4 |......q.|...q....|
|00001ae0| 02 34 f7 0d 47 61 6d 65 | 4d 61 73 74 65 72 20 72 |.4..Game|Master r|
|00001af0| 65 71 75 69 72 65 73 20 | 74 68 61 74 20 74 68 65 |equires |that the|
|00001b00| 20 72 75 6c 65 20 62 6f | 6f 6b 20 63 6f 6e 74 61 | rule bo|ok conta|
|00001b10| 69 6e 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |in the f|ollowing|
|00001b20| 20 72 65 73 6f 75 72 63 | 65 73 3a d0 0d 0d fc 00 | resourc|es:.....|
|00001b30| 55 01 f0 0e 00 55 01 14 | 01 c4 06 34 07 88 f7 d4 |U....U..|...4....|
|00001b40| 47 4d 52 5a f9 00 f7 d5 | 20 31 32 38 0d fc 00 71 |GMRZ....| 128...q|
|00001b50| 01 f0 0e 00 71 01 14 01 | c4 02 34 f7 54 68 69 73 |....q...|..4.This|
|00001b60| 20 72 65 73 6f 75 72 63 | 65 20 63 6f 6e 74 61 69 | resourc|e contai|
|00001b70| 6e 73 20 69 6d 70 6f 72 | 74 61 6e 74 20 69 6e 66 |ns impor|tant inf|
|00001b80| 6f 72 6d 61 74 69 6f 6e | 20 74 68 61 74 20 47 61 |ormation| that Ga|
|00001b90| 6d 65 4d 61 73 74 65 72 | 20 6e 65 65 64 73 20 74 |meMaster| needs t|
|00001ba0| 6f 20 6b 6e 6f 77 20 61 | 62 6f 75 74 20 65 61 63 |o know a|bout eac|
|00001bb0| 68 20 72 75 6c 65 20 62 | 6f 6f 6b 2e 20 20 49 74 |h rule b|ook. It|
|00001bc0| 73 20 73 74 72 75 63 74 | 75 72 65 20 69 73 20 71 |s struct|ure is q|
|00001bd0| 75 69 74 65 20 63 6f 6d | 70 6c 65 78 20 61 6e 64 |uite com|plex and|
|00001be0| 20 69 74 20 69 73 20 64 | 65 73 63 72 69 62 65 64 | it is d|escribed|
|00001bf0| 20 69 6e 20 64 65 74 61 | 69 6c 20 69 6e 20 74 68 | in deta|il in th|
|00001c00| 65 20 6e 65 78 74 20 73 | 65 63 74 69 6f 6e 2e 0d |e next s|ection..|
|00001c10| 0d fc 00 55 01 f0 0e 00 | 55 01 14 01 c4 06 34 07 |...U....|U.....4.|
|00001c20| 88 f7 d4 50 52 4f 43 f9 | 00 f7 d5 20 31 32 38 0d |...PROC.|... 128.|
|00001c30| fc 00 71 01 f0 0e 00 71 | 01 14 01 c4 02 34 f7 54 |..q....q|.....4.T|
|00001c40| 68 69 73 20 72 65 73 6f | 75 72 63 65 20 69 73 20 |his reso|urce is |
|00001c50| 74 68 65 20 63 6f 64 65 | 20 74 68 61 74 20 6d 61 |the code| that ma|
|00001c60| 6b 65 73 20 75 70 20 74 | 68 65 20 63 6f 72 65 20 |kes up t|he core |
|00001c70| 6f 66 20 74 68 65 20 72 | 75 6c 65 20 62 6f 6f 6b |of the r|ule book|
|00001c80| 2e 20 20 54 68 65 20 72 | 65 73 6f 75 72 63 65 20 |. The r|esource |
|00001c90| 6d 75 73 74 20 73 74 61 | 72 74 20 77 69 74 68 20 |must sta|rt with |
|00001ca0| 61 20 70 72 6f 63 65 64 | 75 72 65 20 77 69 74 68 |a proced|ure with|
|00001cb0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 69 | the fol|lowing i|
|00001cc0| 6e 74 65 72 66 61 63 65 | 3a d0 0d 02 85 0d fc 00 |nterface|:.......|
|00001cd0| 7f 01 f0 0e 00 7f 01 0e | 02 34 02 70 02 a8 02 e0 |........|.4.p....|
|00001ce0| 03 18 03 50 05 50 07 14 | 07 88 f7 ff 00 04 09 01 |...P.P..|........|
|00001cf0| f7 70 72 6f 63 65 64 75 | 72 65 ff 00 04 09 00 f7 |.procedu|re......|
|00001d00| 20 4d 79 47 61 6d 65 52 | 75 6c 65 73 28 ff 00 04 | MyGameR|ules(...|
|00001d10| 09 01 f7 76 61 72 ff 00 | 04 09 00 f7 20 67 61 6d |...var..|.... gam|
|00001d20| 65 65 76 65 6e 74 20 3a | 20 67 61 6d 65 45 76 65 |eevent :| gameEve|
|00001d30| 6e 74 52 65 63 6f 72 64 | 29 3b ff 00 10 0c 00 f7 |ntRecord|);......|
|00001d40| 0d fc 00 71 01 f0 0e 00 | 71 01 14 01 c4 02 34 f7 |...q....|q.....4.|
|00001d50| 0d 4e 61 74 75 72 61 6c | 6c 79 20 74 68 65 20 70 |.Natural|ly the p|
|00001d60| 72 6f 63 65 64 75 72 65 | 20 69 64 65 6e 74 69 66 |rocedure| identif|
|00001d70| 69 65 72 20 28 69 65 20 | ff 00 04 09 00 f7 4d 79 |ier (ie |......My|
|00001d80| 47 61 6d 65 52 75 6c 65 | 73 f9 00 f7 ff 00 10 0c |GameRule|s.......|
|00001d90| 00 f7 29 20 69 73 20 75 | 6e 69 6d 70 6f 72 74 61 |..) is u|nimporta|
|00001da0| 6e 74 2e 0d 0d fc 00 55 | 01 f0 0e 00 55 01 14 01 |nt.....U|....U...|
|00001db0| c4 06 34 07 88 f7 d4 44 | 49 54 4c f9 00 f7 d5 20 |..4....D|ITL.... |
|00001dc0| 31 32 38 0d fc 00 71 01 | f0 0e 00 71 01 14 01 c4 |128...q.|...q....|
|00001dd0| 02 34 f7 54 68 69 73 20 | 64 69 61 6c 6f 67 20 69 |.4.This |dialog i|
|00001de0| 74 65 6d 20 6c 69 73 74 | 20 63 6f 6e 74 72 6f 6c |tem list| control|
|00001df0| 73 20 74 68 65 20 6f 76 | 65 72 61 6c 6c 20 6c 61 |s the ov|erall la|
|00001e00| 79 6f 75 74 20 6f 66 20 | 74 68 65 20 77 69 6e 64 |yout of |the wind|
|00001e10| 6f 77 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |ow assoc|iated wi|
|00001e20| 74 68 20 61 6e 79 20 67 | 61 6d 65 20 74 68 61 74 |th any g|ame that|
|00001e30| 20 75 73 65 73 20 74 68 | 69 73 20 72 75 6c 65 20 | uses th|is rule |
|00001e40| 62 6f 6f 6b 2e 20 20 54 | 68 65 20 69 74 65 6d 20 |book. T|he item |
|00001e50| 6c 69 73 74 20 63 61 6e | 20 63 6f 6e 74 61 69 6e |list can| contain|
|00001e60| 20 61 6e 79 20 6f 66 20 | 74 68 65 20 73 74 61 6e | any of |the stan|
|00001e70| 64 61 72 64 20 64 69 61 | 6c 6f 67 20 69 74 65 6d |dard dia|log item|
|00001e80| 73 2e 20 20 57 68 65 6e | 20 47 61 6d 65 4d 61 73 |s. When| GameMas|
|00001e90| 74 65 72 20 73 74 61 72 | 74 73 20 61 20 6e 65 77 |ter star|ts a new|
|00001ea0| 20 67 61 6d 65 20 69 74 | 20 63 72 65 61 74 65 73 | game it| creates|
|00001eb0| 20 61 20 6d 6f 64 65 6c | 65 73 73 20 64 69 61 6c | a model|ess dial|
|00001ec0| 6f 67 20 62 61 73 65 64 | 20 6f 6e 20 74 68 69 73 |og based| on this|
|00001ed0| 20 44 49 54 4c 2e 20 20 | 47 61 6d 65 4d 61 73 74 | DITL. |GameMast|
|00001ee0| 65 72 20 61 64 64 73 20 | 69 74 73 20 6f 77 6e 20 |er adds |its own |
|00001ef0| 69 74 65 6d 73 20 61 66 | 74 65 72 20 74 68 65 20 |items af|ter the |
|00001f00| 72 75 6c 65 d5 73 20 69 | 74 65 6d 73 2e 20 20 54 |rule.s i|tems. T|
|00001f10| 68 75 73 20 74 68 65 20 | 72 75 6c 65 20 62 6f 6f |hus the |rule boo|
|00001f20| 6b 20 73 68 6f 75 6c 64 | 20 6e 6f 74 20 72 65 6c |k should| not rel|
|00001f30| 79 20 6f 6e 20 74 68 65 | 20 6c 65 6e 67 74 68 20 |y on the| length |
|00001f40| 6f 66 20 74 68 65 20 69 | 74 65 6d 20 6c 69 73 74 |of the i|tem list|
|00001f50| 2e 0d 02 22 4e 6f 74 65 | 20 74 68 61 74 20 74 68 |..."Note| that th|
|00001f60| 69 73 20 44 49 54 4c 20 | 72 65 73 6f 75 72 63 65 |is DITL |resource|
|00001f70| 20 73 68 6f 75 6c 64 20 | 62 65 20 70 75 72 67 65 | should |be purge|
|00001f80| 61 62 6c 65 2e 20 20 41 | 6c 73 6f 20 6e 6f 74 65 |able. A|lso note|
|00001f90| 20 74 68 61 74 20 61 6e | 79 20 73 65 63 6f 6e 64 | that an|y second|
|00001fa0| 61 72 79 20 72 65 73 6f | 75 72 63 65 73 20 28 50 |ary reso|urces (P|
|00001fb0| 49 43 54 73 2c 20 49 43 | 4f 4e 73 2c 20 65 74 63 |ICTs, IC|ONs, etc|
|00001fc0| 29 20 61 72 65 20 72 75 | 6c 65 20 62 6f 6f 6b 20 |) are ru|le book |
|00001fd0| 72 65 73 6f 75 72 63 65 | 73 20 61 6e 64 20 6d 75 |resource|s and mu|
|00001fe0| 73 74 20 68 61 76 65 20 | 72 65 73 6f 75 72 63 65 |st have |resource|
|00001ff0| 20 49 44 73 20 67 72 65 | 61 74 65 72 20 74 68 61 | IDs gre|ater tha|
|00002000| 6e 20 31 30 30 30 2e 0d | 0d fc 00 55 01 f0 0e 00 |n 1000..|...U....|
|00002010| 55 01 10 01 c4 07 88 f7 | ff 00 10 0e 00 f7 33 2e |U.......|......3.|
|00002020| 33 2e 09 54 68 65 20 ff | 00 10 0c 00 f7 47 4d 52 |3..The .|.....GMR|
|00002030| 5a f9 00 f7 ff 00 10 0e | 00 f7 20 52 65 73 6f 75 |Z.......|.. Resou|
|00002040| 72 63 65 ff 00 10 0c 00 | f7 0d fc 00 71 01 f0 0e |rce.....|....q...|
|00002050| 00 71 01 14 01 c4 02 34 | f7 0d 54 68 65 20 47 4d |.q.....4|..The GM|
|00002060| 52 5a f9 00 f7 20 68 61 | 73 20 61 20 6c 61 72 67 |RZ... ha|s a larg|
|00002070| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 66 69 65 6c |e number| of fiel|
|00002080| 64 73 20 6f 66 20 77 68 | 69 63 68 20 74 68 65 20 |ds of wh|ich the |
|00002090| 72 75 6c 65 20 62 6f 6f | 6b 20 64 65 73 69 67 6e |rule boo|k design|
|000020a0| 65 72 20 73 68 6f 75 6c | 64 20 62 65 20 61 77 61 |er shoul|d be awa|
|000020b0| 72 65 2e 20 20 45 61 63 | 68 20 6f 66 20 74 68 65 |re. Eac|h of the|
|000020c0| 20 66 69 65 6c 64 73 20 | 6f 66 20 74 68 65 20 47 | fields |of the G|
|000020d0| 4d 52 5a 20 72 65 73 6f | 75 72 63 65 20 69 73 20 |MRZ reso|urce is |
|000020e0| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 75 72 |describe|d in tur|
|000020f0| 6e 20 62 65 6c 6f 77 2e | 20 20 4e 6f 74 65 20 74 |n below.| Note t|
|00002100| 68 61 74 20 74 68 65 20 | 74 79 70 65 20 69 64 65 |hat the |type ide|
|00002110| 6e 74 69 66 69 65 72 73 | 20 61 72 65 20 74 61 6b |ntifiers| are tak|
|00002120| 65 6e 20 66 72 6f 6d 20 | 74 68 65 20 52 65 73 45 |en from |the ResE|
|00002130| 64 69 74 20 32 2e 78 20 | 74 65 6d 70 6c 61 74 65 |dit 2.x |template|
|00002140| 20 73 75 70 70 6c 69 65 | 64 20 61 73 20 70 61 72 | supplie|d as par|
|00002150| 74 20 6f 66 20 74 68 65 | 20 47 61 6d 65 4d 61 73 |t of the| GameMas|
|00002160| 74 65 72 20 44 65 76 65 | 6c 6f 70 65 72 d5 73 20 |ter Deve|loper.s |
|00002170| 4b 69 74 2e 0d 0d 00 b8 | fc 00 71 01 f0 0e 00 71 |Kit.....|..q....q|
|00002180| 01 14 01 c4 02 a8 f7 50 | 4f 33 46 09 4e 61 6d 65 |.......P|O3F.Name|
|00002190| 20 6f 66 20 74 68 65 20 | 47 61 6d 65 0d fc 00 71 | of the |Game...q|
|000021a0| 01 f0 0e 00 71 01 14 01 | c4 02 34 f7 54 68 69 73 |....q...|..4.This|
|000021b0| 20 73 74 72 69 6e 67 20 | 72 65 70 72 65 73 65 6e | string |represen|
|000021c0| 74 73 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |ts the n|ame of t|
|000021d0| 68 65 20 67 61 6d 65 20 | 74 68 61 74 20 74 68 65 |he game |that the|
|000021e0| 20 72 75 6c 65 20 62 6f | 6f 6b 20 70 6c 61 79 73 | rule bo|ok plays|
|000021f0| 2e 20 20 49 74 20 69 73 | 20 75 73 65 64 20 74 6f |. It is| used to|
|00002200| 20 64 69 73 70 6c 61 79 | 20 74 68 65 20 6e 61 6d | display| the nam|
|00002210| 65 20 6f 66 20 74 68 65 | 20 67 61 6d 65 20 69 6e |e of the| game in|
|00002220| 20 74 68 65 20 61 62 6f | 75 74 20 62 6f 78 2e 0d | the abo|ut box..|
|00002230| 00 01 0d 00 50 fc 00 71 | 01 f0 0e 00 71 01 14 01 |....P..q|....q...|
|00002240| c4 02 a8 f7 50 4f 37 46 | 09 41 75 74 68 6f 72 0d |....PO7F|.Author.|
|00002250| fc 00 71 01 f0 0e 00 71 | 01 14 01 c4 02 34 f7 59 |..q....q|.....4.Y|
|00002260| 6f 75 72 20 6e 61 6d 65 | 2e 20 20 57 6f 77 2c 20 |our name|. Wow, |
|00002270| 79 6f 75 d5 72 65 20 77 | 6f 72 6c 64 20 66 61 6d |you.re w|orld fam|
|00002280| 6f 75 73 21 0d 00 01 0d | 00 7a fc 00 71 01 f0 0e |ous!....|.z..q...|
|00002290| 00 71 01 14 01 c4 02 a8 | f7 50 4f 37 46 09 43 6f |.q......|.PO7F.Co|
|000022a0| 70 79 72 69 67 68 74 20 | 53 74 72 69 6e 67 0d fc |pyright |String..|
|000022b0| 00 71 01 f0 0e 00 71 01 | 14 01 c4 02 34 f7 54 68 |.q....q.|....4.Th|
|000022c0| 69 73 20 73 74 72 69 6e | 67 20 69 73 20 70 72 6f |is strin|g is pro|
|000022d0| 76 69 64 65 64 20 73 6f | 20 79 6f 75 20 63 61 6e |vided so| you can|
|000022e0| 20 6c 65 67 61 6c 6c 79 | 20 72 65 74 61 69 6e 20 | legally| retain |
|000022f0| 79 6f 75 72 20 63 6c 61 | 69 6d 20 74 6f 20 66 61 |your cla|im to fa|
|00002300| 6d 65 2e 0d 00 01 0d 01 | be fc 00 71 01 f0 0e 00 |me......|...q....|
|00002310| 71 01 14 01 c4 02 a8 f7 | 50 4f 33 46 09 49 44 20 |q.......|PO3F.ID |
|00002320| 53 74 72 69 6e 67 0d fc | 00 71 01 f0 0e 00 71 01 |String..|.q....q.|
|00002330| 14 01 c4 02 34 f7 54 68 | 69 73 20 73 74 72 69 6e |....4.Th|is strin|
|00002340| 67 20 69 64 65 6e 74 69 | 66 69 65 73 20 74 68 65 |g identi|fies the|
|00002350| 20 72 75 6c 65 20 62 6f | 6f 6b 20 74 6f 20 47 61 | rule bo|ok to Ga|
|00002360| 6d 65 4d 61 73 74 65 72 | 2e 20 20 54 68 69 73 20 |meMaster|. This |
|00002370| 73 74 72 69 6e 67 20 69 | 73 20 75 73 65 64 20 77 |string i|s used w|
|00002380| 68 65 6e 20 47 61 6d 65 | 4d 61 73 74 65 72 20 63 |hen Game|Master c|
|00002390| 6f 6e 6e 65 63 74 73 20 | 77 69 74 68 20 61 6e 6f |onnects |with ano|
|000023a0| 74 68 65 72 20 47 61 6d | 65 4d 61 73 74 65 72 20 |ther Gam|eMaster |
|000023b0| 61 63 72 6f 73 73 20 74 | 68 65 20 6e 65 74 77 6f |across t|he netwo|
|000023c0| 72 6b 2e 20 20 49 74 20 | 69 73 20 63 6f 6d 70 61 |rk. It |is compa|
|000023d0| 72 65 64 20 77 69 74 68 | 20 74 68 65 20 63 6f 72 |red with| the cor|
|000023e0| 72 65 73 70 6f 6e 64 69 | 6e 67 20 73 74 72 69 6e |respondi|ng strin|
|000023f0| 67 20 6f 6e 20 74 68 65 | 20 72 65 6d 6f 74 65 20 |g on the| remote |
|00002400| 6d 61 63 68 69 6e 65 20 | 74 6f 20 6d 61 6b 65 20 |machine |to make |
|00002410| 73 75 72 65 20 74 68 61 | 74 20 74 68 65 20 72 75 |sure tha|t the ru|
|00002420| 6c 65 20 20 62 6f 6f 6b | 73 20 61 72 65 20 74 68 |le book|s are th|
|00002430| 65 20 73 61 6d 65 2e 20 | 20 54 68 69 73 20 69 73 |e same. | This is|
|00002440| 20 69 6d 70 6f 72 74 61 | 6e 74 20 62 65 63 61 75 | importa|nt becau|
|00002450| 73 65 20 74 68 65 20 75 | 73 65 72 20 63 61 6e 20 |se the u|ser can |
|00002460| 72 65 6e 61 6d 65 20 72 | 75 6c 65 20 62 6f 6f 6b |rename r|ule book|
|00002470| 73 20 66 72 6f 6d 20 74 | 68 65 20 46 69 6e 64 65 |s from t|he Finde|
|00002480| 72 20 61 6e 64 20 63 6f | 6e 6e 65 63 74 69 6e 67 |r and co|nnecting|
|00002490| 20 74 77 6f 20 67 61 6d | 65 73 20 62 61 73 65 64 | two gam|es based|
|000024a0| 20 6f 6e 20 64 69 66 66 | 65 72 65 6e 74 20 72 75 | on diff|erent ru|
|000024b0| 6c 65 20 62 6f 6f 6b 73 | 20 77 6f 75 6c 64 20 62 |le books| would b|
|000024c0| 65 20 62 61 64 21 0d 00 | 01 0d 00 01 0d 00 a3 fc |e bad!..|........|
|000024d0| 00 71 01 f0 0e 00 71 01 | 14 01 c4 02 a8 f7 48 57 |.q....q.|......HW|
|000024e0| 52 44 09 52 65 71 75 69 | 72 65 64 20 52 75 6c 65 |RD.Requi|red Rule|
|000024f0| 20 42 6f 6f 6b 20 56 65 | 72 73 69 6f 6e 0d fc 00 | Book Ve|rsion...|
|00002500| 71 01 f0 0e 00 71 01 14 | 01 c4 02 34 f7 54 68 69 |q....q..|...4.Thi|
|00002510| 73 20 77 6f 72 64 20 69 | 73 20 74 68 65 20 6f 6c |s word i|s the ol|
|00002520| 64 65 73 74 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |dest ver|sion of |
|00002530| 74 68 69 73 20 72 75 6c | 65 20 62 6f 6f 6b 20 77 |this rul|e book w|
|00002540| 69 74 68 20 77 68 69 63 | 68 20 74 68 69 73 20 72 |ith whic|h this r|
|00002550| 75 6c 65 20 62 6f 6f 6b | 20 63 61 6e 20 73 61 66 |ule book| can saf|
|00002560| 65 6c 79 20 62 65 20 63 | 6f 6e 6e 65 63 74 65 64 |ely be c|onnected|
|00002570| 2e 0d 00 01 0d 00 81 fc | 00 71 01 f0 0e 00 71 01 |........|.q....q.|
|00002580| 14 01 c4 02 a8 f7 48 57 | 52 44 09 47 61 6d 65 4d |......HW|RD.GameM|
|00002590| 61 73 74 65 72 20 56 65 | 72 73 69 6f 6e 0d fc 00 |aster Ve|rsion...|
|000025a0| 71 01 f0 0e 00 71 01 14 | 01 c4 02 34 f7 54 68 65 |q....q..|...4.The|
|000025b0| 20 76 65 72 73 69 6f 6e | 20 6e 75 6d 62 65 72 20 | version| number |
|000025c0| 6f 66 20 47 61 6d 65 4d | 61 73 74 65 72 20 75 6e |of GameM|aster un|
|000025d0| 64 65 72 20 77 68 69 63 | 68 20 74 68 69 73 20 72 |der whic|h this r|
|000025e0| 75 6c 65 20 62 6f 6f 6b | 20 77 61 73 20 64 65 76 |ule book| was dev|
|000025f0| 65 6c 6f 70 65 64 2e 0d | 00 01 0d 00 8e fc 00 71 |eloped..|.......q|
|00002600| 01 f0 0e 00 71 01 14 01 | c4 02 a8 f7 48 57 52 44 |....q...|....HWRD|
|00002610| 09 52 65 71 75 69 72 65 | 64 20 47 61 6d 65 4d 61 |.Require|d GameMa|
|00002620| 73 74 65 72 20 56 65 72 | 73 69 6f 6e 0d fc 00 71 |ster Ver|sion...q|
|00002630| 01 f0 0e 00 71 01 14 01 | c4 02 34 f7 54 68 65 20 |....q...|..4.The |
|00002640| 6f 6c 64 65 73 74 20 76 | 65 72 73 69 6f 6e 20 6f |oldest v|ersion o|
|00002650| 66 20 47 61 6d 65 4d 61 | 73 74 65 72 20 77 69 74 |f GameMa|ster wit|
|00002660| 68 20 77 68 69 63 68 20 | 74 68 69 73 20 72 75 6c |h which |this rul|
|00002670| 65 20 62 6f 6f 6b 20 63 | 61 6e 20 62 65 20 73 61 |e book c|an be sa|
|00002680| 66 65 6c 79 20 75 73 65 | 64 2e 0d 00 01 0d 01 38 |fely use|d......8|
|00002690| fc 00 71 01 f0 0e 00 71 | 01 14 01 c4 02 a8 f7 44 |..q....q|.......D|
|000026a0| 4c 4e 47 09 52 75 6c 65 | 20 42 6f 6f 6b 20 50 61 |LNG.Rule| Book Pa|
|000026b0| 72 74 69 74 69 6f 6e 0d | fc 00 71 01 f0 0e 00 71 |rtition.|..q....q|
|000026c0| 01 14 01 c4 02 34 f7 54 | 68 65 20 6e 75 6d 62 65 |.....4.T|he numbe|
|000026d0| 72 20 6f 66 20 62 79 74 | 65 73 20 74 68 61 74 20 |r of byt|es that |
|000026e0| 6d 75 73 74 20 62 65 20 | 66 72 65 65 20 66 6f 72 |must be |free for|
|000026f0| 20 74 68 69 73 20 72 75 | 6c 65 20 62 6f 6f 6b 20 | this ru|le book |
|00002700| 74 6f 20 62 65 20 75 73 | 65 64 2e 20 20 49 66 20 |to be us|ed. If |
|00002710| 74 68 65 72 65 20 61 72 | 65 20 6e 6f 20 67 61 6d |there ar|e no gam|
|00002720| 65 73 20 63 75 72 72 65 | 6e 74 6c 79 20 62 65 69 |es curre|ntly bei|
|00002730| 6e 67 20 70 6c 61 79 65 | 64 20 77 69 74 68 20 74 |ng playe|d with t|
|00002740| 68 69 73 20 72 75 6c 65 | 20 62 6f 6f 6b 2c 20 47 |his rule| book, G|
|00002750| 61 6d 65 4d 61 73 74 65 | 72 20 61 64 64 73 20 74 |ameMaste|r adds t|
|00002760| 68 69 73 20 6e 75 6d 62 | 65 72 20 74 6f 20 74 68 |his numb|er to th|
|00002770| 65 20 47 61 6d 65 20 4d | 65 6d 6f 72 79 20 50 61 |e Game M|emory Pa|
|00002780| 72 74 69 74 69 6f 6e 20 | 74 6f 20 64 65 74 65 72 |rtition |to deter|
|00002790| 6d 69 6e 65 20 74 68 65 | 20 74 6f 74 61 6c 20 61 |mine the| total a|
|000027a0| 6d 6f 75 6e 74 20 6f 66 | 20 73 70 61 63 65 20 72 |mount of| space r|
|000027b0| 65 71 75 69 72 65 64 20 | 66 6f 72 20 61 20 6e 65 |equired |for a ne|
|000027c0| 77 20 67 61 6d 65 2e 0d | 00 01 0d 00 7a fc 00 71 |w game..|....z..q|
|000027d0| 01 f0 0e 00 71 01 14 01 | c4 02 a8 f7 44 4c 4e 47 |....q...|....DLNG|
|000027e0| 09 47 61 6d 65 20 4d 65 | 6d 6f 72 79 20 50 61 72 |.Game Me|mory Par|
|000027f0| 74 69 74 69 6f 6e 0d fc | 00 71 01 f0 0e 00 71 01 |tition..|.q....q.|
|00002800| 14 01 c4 02 34 f7 54 68 | 65 20 6e 75 6d 62 65 72 |....4.Th|e number|
|00002810| 20 6f 66 20 62 79 74 65 | 73 20 74 61 6b 65 6e 20 | of byte|s taken |
|00002820| 62 79 20 65 61 63 68 20 | 6e 65 77 20 67 61 6d 65 |by each |new game|
|00002830| 20 75 73 69 6e 67 20 74 | 68 69 73 20 72 75 6c 65 | using t|his rule|
|00002840| 20 62 6f 6f 6b 2e 0d 00 | 01 0d 01 1e fc 00 71 01 | book...|......q.|
|00002850| f0 0e 00 71 01 14 01 c4 | 02 a8 f7 42 42 49 54 09 |...q....|...BBIT.|
|00002860| 44 69 73 61 6c 6c 6f 77 | 20 53 61 76 65 0d fc 00 |Disallow| Save...|
|00002870| 71 01 f0 0e 00 71 01 14 | 01 c4 02 34 f7 49 66 20 |q....q..|...4.If |
|00002880| 74 68 69 73 20 62 69 74 | 20 69 73 20 73 65 74 20 |this bit| is set |
|00002890| 74 68 65 6e 20 74 68 65 | 20 75 73 65 72 20 77 69 |then the| user wi|
|000028a0| 6c 6c 20 6e 6f 74 20 62 | 65 20 61 62 6c 65 20 74 |ll not b|e able t|
|000028b0| 6f 20 73 61 76 65 20 67 | 61 6d 65 73 20 70 6c 61 |o save g|ames pla|
|000028c0| 79 65 64 20 77 69 74 68 | 20 74 68 69 73 20 72 75 |yed with| this ru|
|000028d0| 6c 65 20 62 6f 6f 6b 2e | 20 20 4e 6f 74 65 20 74 |le book.| Note t|
|000028e0| 68 61 74 20 75 6e 6c 65 | 73 73 20 74 68 65 20 44 |hat unle|ss the D|
|000028f0| 69 73 61 6c 6c 6f 77 20 | 43 6f 6e 6e 65 63 74 20 |isallow |Connect |
|00002900| 62 69 74 20 69 73 20 61 | 6c 73 6f 20 73 65 74 20 |bit is a|lso set |
|00002910| 74 68 65 20 72 75 6c 65 | 20 62 6f 6f 6b 20 63 61 |the rule| book ca|
|00002920| 6e 20 73 74 69 6c 6c 20 | 62 65 20 73 65 6e 74 20 |n still |be sent |
|00002930| 67 65 5f 4f 6c 64 47 61 | 6d 65 20 65 76 65 6e 74 |ge_OldGa|me event|
|00002940| 73 20 61 73 20 70 61 72 | 74 20 6f 66 20 74 68 65 |s as par|t of the|
|00002950| 20 6e 65 74 77 6f 72 6b | 20 63 6f 6e 6e 65 63 74 | network| connect|
|00002960| 20 70 72 6f 63 65 73 73 | 2e 0d 00 01 0d 00 d2 fc | process|........|
|00002970| 00 71 01 f0 0e 00 71 01 | 14 01 c4 02 a8 f7 42 42 |.q....q.|......BB|
|00002980| 49 54 09 44 69 73 61 6c | 6c 6f 77 20 43 6f 6e 6e |IT.Disal|low Conn|
|00002990| 65 63 74 0d fc 00 71 01 | f0 0e 00 71 01 14 01 c4 |ect...q.|...q....|
|000029a0| 02 34 f7 49 66 20 74 68 | 69 73 20 62 69 74 20 69 |.4.If th|is bit i|
|000029b0| 73 20 73 65 74 20 74 68 | 65 6e 20 74 68 65 20 75 |s set th|en the u|
|000029c0| 73 65 72 20 77 69 6c 6c | 20 6e 6f 74 20 62 65 20 |ser will| not be |
|000029d0| 61 62 6c 65 20 74 6f 20 | 63 6f 6e 6e 65 63 74 20 |able to |connect |
|000029e0| 67 61 6d 65 73 20 6d 61 | 64 65 20 77 69 74 68 20 |games ma|de with |
|000029f0| 74 68 69 73 20 72 75 6c | 65 20 62 6f 6f 6b 2e 20 |this rul|e book. |
|00002a00| 20 59 6f 75 20 63 61 6e | 20 73 65 74 20 74 68 69 | You can| set thi|
|00002a10| 73 20 66 6f 72 20 72 75 | 6c 65 20 62 6f 6f 6b 73 |s for ru|le books|
|00002a20| 20 74 68 61 74 20 64 6f | 20 6e 6f 74 20 73 75 70 | that do| not sup|
|00002a30| 70 6f 72 74 20 6e 65 74 | 77 6f 72 6b 69 6e 67 2e |port net|working.|
|00002a40| 0d 00 01 0d 00 93 fc 00 | 71 01 f0 0e 00 71 01 14 |........|q....q..|
|00002a50| 01 c4 02 a8 f7 42 42 49 | 54 09 44 69 73 61 6c 6c |.....BBI|T.Disall|
|00002a60| 6f 77 20 52 65 73 74 61 | 72 74 0d fc 00 71 01 f0 |ow Resta|rt...q..|
|00002a70| 0e 00 71 01 14 01 c4 02 | 34 f7 49 66 20 74 68 69 |..q.....|4.If thi|
|00002a80| 73 20 62 69 74 20 69 73 | 20 73 65 74 20 74 68 65 |s bit is| set the|
|00002a90| 6e 20 74 68 65 20 75 73 | 65 72 20 77 69 6c 6c 20 |n the us|er will |
|00002aa0| 6e 6f 74 20 62 65 20 61 | 62 6c 65 20 74 6f 20 72 |not be a|ble to r|
|00002ab0| 65 73 74 61 72 74 20 67 | 61 6d 65 73 20 70 6c 61 |estart g|ames pla|
|00002ac0| 79 65 64 20 77 69 74 68 | 20 74 68 69 73 20 72 75 |yed with| this ru|
|00002ad0| 6c 65 20 62 6f 6f 6b 2e | 0d 00 01 0d 01 97 fc 00 |le book.|........|
|00002ae0| 71 01 f0 0e 00 71 01 14 | 01 c4 02 a8 f7 42 42 49 |q....q..|.....BBI|
|00002af0| 54 09 44 69 73 61 6c 6c | 6f 77 20 53 77 61 70 0d |T.Disall|ow Swap.|
|00002b00| fc 00 71 01 f0 0e 00 71 | 01 14 01 c4 02 34 f7 49 |..q....q|.....4.I|
|00002b10| 66 20 74 68 69 73 20 62 | 69 74 20 69 73 20 73 65 |f this b|it is se|
|00002b20| 74 20 74 68 65 6e 20 74 | 68 65 20 75 73 65 72 20 |t then t|he user |
|00002b30| 77 69 6c 6c 20 6e 6f 74 | 20 62 65 20 61 62 6c 65 |will not| be able|
|00002b40| 20 74 6f 20 73 77 61 70 | 20 67 61 6d 65 73 20 70 | to swap| games p|
|00002b50| 6c 61 79 65 64 20 77 69 | 74 68 20 74 68 69 73 20 |layed wi|th this |
|00002b60| 72 75 6c 65 20 62 6f 6f | 6b 2e 20 20 53 77 61 70 |rule boo|k. Swap|
|00002b70| 70 69 6e 67 20 69 73 20 | 6f 6e 6c 79 20 70 6f 73 |ping is |only pos|
|00002b80| 73 69 62 6c 65 20 77 68 | 65 6e 20 74 77 6f 20 67 |sible wh|en two g|
|00002b90| 61 6d 65 73 20 61 72 65 | 20 63 6f 6e 6e 65 63 74 |ames are| connect|
|00002ba0| 65 64 20 61 6e 64 20 69 | 74 20 69 6e 76 6f 6c 76 |ed and i|t involv|
|00002bb0| 65 73 20 63 68 61 6e 67 | 69 6e 67 20 77 68 69 63 |es chang|ing whic|
|00002bc0| 68 20 70 6c 61 79 65 72 | 20 74 68 65 20 6c 6f 63 |h player| the loc|
|00002bd0| 61 6c 20 6d 61 63 68 69 | 6e 65 20 69 73 20 70 6c |al machi|ne is pl|
|00002be0| 61 79 69 6e 67 2e 20 20 | 4e 6f 74 65 20 74 68 61 |aying. |Note tha|
|00002bf0| 74 20 75 6e 6c 65 73 73 | 20 74 68 65 20 44 69 73 |t unless| the Dis|
|00002c00| 61 6c 6c 6f 77 20 43 6f | 6e 6e 65 63 74 20 62 69 |allow Co|nnect bi|
|00002c10| 74 20 69 73 20 61 6c 73 | 6f 20 73 65 74 20 74 68 |t is als|o set th|
|00002c20| 65 20 72 75 6c 65 20 62 | 6f 6f 6b 20 63 61 6e 20 |e rule b|ook can |
|00002c30| 73 74 69 6c 6c 20 62 65 | 20 73 65 6e 74 20 67 65 |still be| sent ge|
|00002c40| 5f 53 77 61 70 20 65 76 | 65 6e 74 73 20 61 73 20 |_Swap ev|ents as |
|00002c50| 70 61 72 74 20 6f 66 20 | 74 68 65 20 6e 65 74 77 |part of |the netw|
|00002c60| 6f 72 6b 20 63 6f 6e 6e | 65 63 74 20 70 72 6f 63 |ork conn|ect proc|
|00002c70| 65 73 73 2e 0d 00 01 0d | 01 03 fc 00 71 01 f0 0e |ess.....|....q...|
|00002c80| 00 71 01 14 01 c4 02 a8 | f7 42 42 49 54 09 4e 6f |.q......|.BBIT.No|
|00002c90| 20 49 64 6c 65 20 45 76 | 65 6e 74 73 0d fc 00 71 | Idle Ev|ents...q|
|00002ca0| 01 f0 0e 00 71 01 14 01 | c4 02 34 f7 49 66 20 74 |....q...|..4.If t|
|00002cb0| 68 69 73 20 62 69 74 20 | 69 73 20 73 65 74 20 74 |his bit |is set t|
|00002cc0| 68 65 6e 20 6e 6f 20 67 | 65 5f 49 64 6c 65 20 65 |hen no g|e_Idle e|
|00002cd0| 76 65 6e 74 73 20 77 69 | 6c 6c 20 62 65 20 73 65 |vents wi|ll be se|
|00002ce0| 6e 74 20 74 6f 20 74 68 | 69 73 20 72 75 6c 65 20 |nt to th|is rule |
|00002cf0| 62 6f 6f 6b 2e 20 20 49 | 64 6c 65 20 65 76 65 6e |book. I|dle even|
|00002d00| 74 73 20 61 72 65 20 6f | 6e 6c 79 20 75 73 65 66 |ts are o|nly usef|
|00002d10| 75 6c 20 69 66 20 79 6f | 75 20 77 69 73 68 20 74 |ul if yo|u wish t|
|00002d20| 6f 20 61 6e 69 6d 61 74 | 65 20 79 6f 75 72 20 64 |o animat|e your d|
|00002d30| 69 73 70 6c 61 79 20 6f | 72 20 77 72 69 74 65 20 |isplay o|r write |
|00002d40| 61 20 72 65 61 6c 2d 74 | 69 6d 65 20 67 61 6d 65 |a real-t|ime game|
|00002d50| 2e 20 20 4d 6f 73 74 20 | 72 75 6c 65 20 62 6f 6f |. Most |rule boo|
|00002d60| 6b 73 20 63 61 6e 20 73 | 61 66 65 6c 79 20 73 65 |ks can s|afely se|
|00002d70| 74 20 74 68 69 73 20 62 | 69 74 2e 20 0d 00 01 0d |t this b|it. ....|
|00002d80| 01 3d fc 00 71 01 f0 0e | 00 71 01 14 01 c4 02 a8 |.=..q...|.q......|
|00002d90| f7 42 42 49 54 09 4e 6f | 20 53 6c 65 65 70 51 75 |.BBIT.No| SleepQu|
|00002da0| 65 72 79 20 45 76 65 6e | 74 73 0d fc 00 71 01 f0 |ery Even|ts...q..|
|00002db0| 0e 00 71 01 14 01 c4 02 | 34 f7 49 66 20 74 68 69 |..q.....|4.If thi|
|00002dc0| 73 20 62 69 74 20 69 73 | 20 73 65 74 20 74 68 65 |s bit is| set the|
|00002dd0| 6e 20 6e 6f 20 67 65 5f | 53 6c 65 65 70 51 75 65 |n no ge_|SleepQue|
|00002de0| 72 79 20 65 76 65 6e 74 | 73 20 77 69 6c 6c 20 62 |ry event|s will b|
|00002df0| 65 20 73 65 6e 74 20 74 | 6f 20 74 68 69 73 20 72 |e sent t|o this r|
|00002e00| 75 6c 65 20 62 6f 6f 6b | 2e 20 20 67 65 5f 53 6c |ule book|. ge_Sl|
|00002e10| 65 65 70 51 75 65 72 79 | 20 65 76 65 6e 74 73 20 |eepQuery| events |
|00002e20| 61 72 65 20 75 73 65 64 | 20 74 6f 20 74 69 6d 65 |are used| to time|
|00002e30| 20 74 68 65 20 69 64 6c | 65 20 65 76 65 6e 74 73 | the idl|e events|
|00002e40| 20 61 6e 64 20 63 68 61 | 6e 67 65 20 74 68 65 20 | and cha|nge the |
|00002e50| 73 68 61 70 65 20 6f 66 | 20 74 68 65 20 63 75 72 |shape of| the cur|
|00002e60| 73 6f 72 2e 20 20 53 65 | 74 20 74 68 69 73 20 69 |sor. Se|t this i|
|00002e70| 66 20 79 6f 75 20 6e 65 | 76 65 72 20 63 68 61 6e |f you ne|ver chan|
|00002e80| 67 65 20 74 68 65 20 73 | 68 61 70 65 20 6f 66 20 |ge the s|hape of |
|00002e90| 74 68 65 20 63 75 72 73 | 6f 72 20 61 6e 64 20 79 |the curs|or and y|
|00002ea0| 6f 75 20 64 6f 20 6e 6f | 74 20 72 65 71 75 69 72 |ou do no|t requir|
|00002eb0| 65 20 69 64 6c 65 20 65 | 76 65 6e 74 73 2e 0d 00 |e idle e|vents...|
|00002ec0| 01 0d 00 6c fc 00 71 01 | f0 0e 00 71 01 14 01 c4 |...l..q.|...q....|
|00002ed0| 02 a8 f7 42 42 49 54 09 | 52 65 73 65 72 76 65 64 |...BBIT.|Reserved|
|00002ee0| 30 0d fc 00 71 01 f0 0e | 00 71 01 14 01 c4 02 34 |0...q...|.q.....4|
|00002ef0| f7 54 68 69 73 20 62 69 | 74 20 69 73 20 72 65 73 |.This bi|t is res|
|00002f00| 65 72 76 65 64 20 66 6f | 72 20 66 75 74 75 72 65 |erved fo|r future|
|00002f10| 20 65 78 70 61 6e 73 69 | 6f 6e 20 61 6e 64 20 73 | expansi|on and s|
|00002f20| 68 6f 75 6c 64 20 62 65 | 20 63 6c 65 61 72 2e 0d |hould be| clear..|
|00002f30| 00 01 0d 00 6c fc 00 71 | 01 f0 0e 00 71 01 14 01 |....l..q|....q...|
|00002f40| c4 02 a8 f7 42 42 49 54 | 09 52 65 73 65 72 76 65 |....BBIT|.Reserve|
|00002f50| 64 31 0d fc 00 71 01 f0 | 0e 00 71 01 14 01 c4 02 |d1...q..|..q.....|
|00002f60| 34 f7 54 68 69 73 20 62 | 69 74 20 69 73 20 72 65 |4.This b|it is re|
|00002f70| 73 65 72 76 65 64 20 66 | 6f 72 20 66 75 74 75 72 |served f|or futur|
|00002f80| 65 20 65 78 70 61 6e 73 | 69 6f 6e 20 61 6e 64 20 |e expans|ion and |
|00002f90| 73 68 6f 75 6c 64 20 62 | 65 20 63 6c 65 61 72 2e |should b|e clear.|
|00002fa0| 0d 00 01 0d 00 6c fc 00 | 71 01 f0 0e 00 71 01 14 |.....l..|q....q..|
|00002fb0| 01 c4 02 a8 f7 44 42 59 | 54 09 52 65 73 65 72 76 |.....DBY|T.Reserv|
|00002fc0| 65 64 32 0d fc 00 71 01 | f0 0e 00 71 01 14 01 c4 |ed2...q.|...q....|
|00002fd0| 02 34 f7 54 68 69 73 20 | 62 69 74 20 69 73 20 72 |.4.This |bit is r|
|00002fe0| 65 73 65 72 76 65 64 20 | 66 6f 72 20 66 75 74 75 |eserved |for futu|
|00002ff0| 72 65 20 65 78 70 61 6e | 73 69 6f 6e 20 61 6e 64 |re expan|sion and|
|00003000| 20 73 68 6f 75 6c 64 20 | 62 65 20 63 6c 65 61 72 | should |be clear|
|00003010| 2e 0d 00 01 0d 00 6c fc | 00 71 01 f0 0e 00 71 01 |......l.|.q....q.|
|00003020| 14 01 c4 02 a8 f7 44 57 | 52 44 09 52 65 73 65 72 |......DW|RD.Reser|
|00003030| 76 65 64 33 0d fc 00 71 | 01 f0 0e 00 71 01 14 01 |ved3...q|....q...|
|00003040| c4 02 34 f7 54 68 69 73 | 20 62 69 74 20 69 73 20 |..4.This| bit is |
|00003050| 72 65 73 65 72 76 65 64 | 20 66 6f 72 20 66 75 74 |reserved| for fut|
|00003060| 75 72 65 20 65 78 70 61 | 6e 73 69 6f 6e 20 61 6e |ure expa|nsion an|
|00003070| 64 20 73 68 6f 75 6c 64 | 20 62 65 20 63 6c 65 61 |d should| be clea|
|00003080| 72 2e 0d 00 7c ff 00 10 | 0e 01 f7 fc 00 55 01 f0 |r...|...|.....U..|
|00003090| 0e 00 55 01 10 01 c4 07 | 88 f7 34 2e 09 54 68 65 |..U.....|..4..The|
|000030a0| 20 47 61 6d 65 20 45 76 | 65 6e 74 20 52 65 63 6f | Game Ev|ent Reco|
|000030b0| 72 64 f9 00 f7 ff 00 10 | 0c 00 f7 0d fc 00 71 01 |rd......|......q.|
|000030c0| f0 0e 00 71 01 14 01 c4 | 02 34 f7 0d 54 68 65 20 |...q....|.4..The |
|000030d0| 67 61 6d 65 20 65 76 65 | 6e 74 20 72 65 63 6f 72 |game eve|nt recor|
|000030e0| 64 20 68 61 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |d has th|e follow|
|000030f0| 69 6e 67 20 73 74 72 75 | 63 74 75 72 65 3a d0 0d |ing stru|cture:..|
|00003100| 0d 01 ba fc 00 7f 01 f0 | 0e 00 7f 01 0e 02 34 02 |........|......4.|
|00003110| 70 02 a8 02 e0 03 18 03 | 50 05 50 07 14 07 88 f7 |p.......|P.P.....|
|00003120| ff 00 04 09 00 f7 f9 00 | f7 67 61 6d 65 45 76 65 |........|.gameEve|
|00003130| 6e 74 52 65 63 6f 72 64 | 20 3d 0d ff 00 04 09 00 |ntRecord| =......|
|00003140| f7 09 ff 00 04 09 01 f7 | 72 65 63 6f 72 64 ff 00 |........|record..|
|00003150| 04 09 00 f7 0d 09 09 65 | 76 65 6e 74 3a 20 67 61 |.......e|vent: ga|
|00003160| 6d 65 45 76 65 6e 74 54 | 79 70 65 3b 0d 09 09 67 |meEventT|ype;...g|
|00003170| 61 6d 65 20 3a 20 48 61 | 6e 64 6c 65 3b 0d 09 09 |ame : Ha|ndle;...|
|00003180| 67 6c 6f 62 61 6c 73 20 | 3a 20 48 61 6e 64 6c 65 |globals |: Handle|
|00003190| 3b 0d 09 09 77 68 65 72 | 65 20 3a 20 50 6f 69 6e |;...wher|e : Poin|
|000031a0| 74 3b 0d 09 09 6d 6f 64 | 69 66 69 65 72 73 20 3a |t;...mod|ifiers :|
|000031b0| 20 69 6e 74 65 67 65 72 | 3b 0d 09 09 6d 65 73 73 | integer|;...mess|
|000031c0| 61 67 65 20 3a 20 53 74 | 72 32 35 35 3b 0d 09 09 |age : St|r255;...|
|000031d0| 62 75 74 31 2c 20 62 75 | 74 32 20 3a 20 62 75 74 |but1, bu|t2 : but|
|000031e0| 74 6f 6e 53 74 72 3b 0d | 09 09 69 6e 74 31 2c 20 |tonStr;.|..int1, |
|000031f0| 69 6e 74 32 20 3a 20 69 | 6e 74 65 67 65 72 3b 0d |int2 : i|nteger;.|
|00003200| 09 09 6c 6f 6e 67 31 20 | 3a 20 6c 6f 6e 67 69 6e |..long1 |: longin|
|00003210| 74 3b 0d 09 09 6d 6f 64 | 69 66 69 65 64 20 3a 20 |t;...mod|ified : |
|00003220| 62 6f 6f 6c 65 61 6e 3b | 0d 09 09 6d 79 74 75 72 |boolean;|...mytur|
|00003230| 6e 20 3a 20 62 6f 6f 6c | 65 61 6e 3b 0d 09 09 76 |n : bool|ean;...v|
|00003240| 65 72 73 69 6f 6e 20 3a | 20 69 6e 74 65 67 65 72 |ersion :| integer|
|00003250| 3b 0d 09 09 64 69 61 6c | 6f 67 69 6e 67 3a 20 62 |;...dial|oging: b|
|00003260| 6f 6f 6c 65 61 6e 3b 0d | 09 09 64 75 6d 73 70 61 |oolean;.|..dumspa|
|00003270| 63 65 3a 20 ff 00 04 09 | 01 f7 61 72 72 61 79 ff |ce: ....|..array.|
|00003280| 00 04 09 00 f7 5b 31 2e | 2e 31 30 5d 20 ff 00 04 |.....[1.|.10] ...|
|00003290| 09 01 f7 6f 66 ff 00 04 | 09 00 f7 20 6c 6f 6e 67 |...of...|... long|
|000032a0| 69 6e 74 3b 0d ff 00 04 | 09 00 f7 09 ff 00 04 09 |int;....|........|
|000032b0| 01 f7 65 6e 64 ff 00 04 | 09 00 f7 3b 0d 01 75 ff |..end...|...;..u.|
|000032c0| 00 04 09 00 f7 ff 00 04 | 09 00 f7 fc 00 7f 01 f0 |........|........|
|000032d0| 0e 00 7f 01 0e 02 34 02 | 70 02 a8 02 e0 03 18 03 |......4.|p.......|
|000032e0| 50 05 50 07 14 07 88 f7 | 67 61 6d 65 45 76 65 6e |P.P.....|gameEven|
|000032f0| 74 54 79 70 65 20 3d 20 | 28 67 65 5f 49 6e 69 74 |tType = |(ge_Init|
|00003300| 52 75 6c 65 42 6f 6f 6b | 2c 20 67 65 5f 46 69 6e |RuleBook|, ge_Fin|
|00003310| 69 73 68 52 75 6c 65 42 | 6f 6f 6b 2c 0d 09 67 65 |ishRuleB|ook,..ge|
|00003320| 5f 4e 65 77 47 61 6d 65 | 2c 20 67 65 5f 4f 6c 64 |_NewGame|, ge_Old|
|00003330| 47 61 6d 65 2c 20 67 65 | 5f 53 77 61 70 2c 67 65 |Game, ge|_Swap,ge|
|00003340| 5f 52 65 73 74 61 72 74 | 2c 20 67 65 5f 43 6c 6f |_Restart|, ge_Clo|
|00003350| 73 65 2c 0d 09 67 65 5f | 41 63 74 69 76 61 74 65 |se,..ge_|Activate|
|00003360| 2c 20 67 65 5f 44 65 61 | 63 74 69 76 61 74 65 2c |, ge_Dea|ctivate,|
|00003370| 20 67 65 5f 55 70 64 61 | 74 65 4d 65 6e 75 73 2c | ge_Upda|teMenus,|
|00003380| 20 67 65 5f 4d 65 6e 75 | 2c 0d 09 67 65 5f 4d 6f | ge_Menu|,..ge_Mo|
|00003390| 75 73 65 44 6f 77 6e 2c | 20 67 65 5f 4b 65 79 44 |useDown,| ge_KeyD|
|000033a0| 6f 77 6e 2c 20 67 65 5f | 49 64 6c 65 2c 20 67 65 |own, ge_|Idle, ge|
|000033b0| 5f 53 6c 65 65 70 51 75 | 65 72 79 2c 0d 09 67 65 |_SleepQu|ery,..ge|
|000033c0| 5f 43 6f 6e 6e 65 63 74 | 69 6f 6e 4d 61 64 65 2c |_Connect|ionMade,|
|000033d0| 20 67 65 5f 4d 65 73 73 | 61 67 65 52 65 63 65 69 | ge_Mess|ageRecei|
|000033e0| 76 65 64 2c 20 67 65 5f | 43 6f 6e 6e 65 63 74 69 |ved, ge_|Connecti|
|000033f0| 6f 6e 4c 6f 73 74 2c 0d | 09 67 65 5f 41 73 6b 2c |onLost,.|.ge_Ask,|
|00003400| 20 67 65 5f 41 6e 73 77 | 65 72 2c 20 67 65 5f 45 | ge_Answ|er, ge_E|
|00003410| 72 72 6f 72 2c 20 67 65 | 5f 53 65 6e 64 4d 65 73 |rror, ge|_SendMes|
|00003420| 73 61 67 65 2c 0d 09 67 | 65 5f 46 6c 61 74 74 65 |sage,..g|e_Flatte|
|00003430| 6e 29 3b 0d 02 23 0d fc | 00 71 01 f0 0e 00 71 01 |n);..#..|.q....q.|
|00003440| 14 01 c4 02 34 f7 46 6f | 72 20 65 61 63 68 20 61 |....4.Fo|r each a|
|00003450| 63 74 69 76 65 20 67 61 | 6d 65 20 47 61 6d 65 4d |ctive ga|me GameM|
|00003460| 61 73 74 65 72 20 63 72 | 65 61 74 65 73 20 61 20 |aster cr|eates a |
|00003470| 6d 6f 64 65 6c 65 73 73 | 20 64 69 61 6c 6f 67 20 |modeless| dialog |
|00003480| 77 69 6e 64 6f 77 20 74 | 68 61 74 20 74 68 65 20 |window t|hat the |
|00003490| 67 61 6d 65 20 75 73 65 | 73 20 74 6f 20 64 69 73 |game use|s to dis|
|000034a0| 70 6c 61 79 20 74 68 65 | 20 67 61 6d 65 20 73 74 |play the| game st|
|000034b0| 61 74 65 20 74 6f 20 74 | 68 65 20 75 73 65 72 2e |ate to t|he user.|
|000034c0| 20 20 54 68 65 20 72 75 | 6c 65 20 62 6f 6f 6b 20 | The ru|le book |
|000034d0| 70 72 6f 76 69 64 65 73 | 20 74 77 6f 20 69 6d 70 |provides| two imp|
|000034e0| 6f 72 74 61 6e 74 20 64 | 61 74 61 20 73 74 72 75 |ortant d|ata stru|
|000034f0| 63 74 75 72 65 73 20 75 | 73 65 64 20 74 6f 20 63 |ctures u|sed to c|
|00003500| 72 65 61 74 65 20 74 68 | 69 73 20 77 69 6e 64 6f |reate th|is windo|
|00003510| 77 2e 20 20 54 68 65 20 | 66 69 72 73 74 20 69 73 |w. The |first is|
|00003520| 20 61 20 64 69 61 6c 6f | 67 20 69 74 65 6d 20 6c | a dialo|g item l|
|00003530| 69 73 74 2e 20 20 47 61 | 6d 65 4d 61 73 74 65 72 |ist. Ga|meMaster|
|00003540| 20 62 61 73 65 73 20 74 | 68 65 20 67 61 6d 65 d5 | bases t|he game.|
|00003550| 73 20 77 69 6e 64 6f 77 | 20 6f 6e 20 74 68 69 73 |s window| on this|
|00003560| 20 6c 69 73 74 2e 20 20 | 54 68 65 20 73 65 63 6f | list. |The seco|
|00003570| 6e 64 20 69 73 20 74 68 | 65 20 77 69 64 74 68 20 |nd is th|e width |
|00003580| 61 6e 64 20 68 65 69 67 | 68 74 20 6f 66 20 74 68 |and heig|ht of th|
|00003590| 65 20 ff 00 10 0c 02 f7 | 70 6c 61 79 20 61 72 65 |e ......|play are|
|000035a0| 61 ff 00 10 0c 00 f7 20 | 61 73 20 64 65 74 65 72 |a...... |as deter|
|000035b0| 6d 69 6e 65 20 62 79 20 | 74 68 65 20 67 65 5f 49 |mine by |the ge_I|
|000035c0| 6e 69 74 52 75 6c 65 42 | 6f 6f 6b 20 65 76 65 6e |nitRuleB|ook even|
|000035d0| 74 2e 20 20 54 68 65 20 | 70 6c 61 79 20 61 72 65 |t. The |play are|
|000035e0| 61 20 69 73 20 61 20 72 | 65 63 74 61 6e 67 6c 65 |a is a r|ectangle|
|000035f0| 20 77 69 74 68 69 6e 20 | 74 68 65 20 67 61 6d 65 | within |the game|
|00003600| 20 77 69 6e 64 6f 77 20 | 77 69 74 68 20 69 74 73 | window |with its|
|00003610| 20 74 6f 70 2d 6c 65 66 | 74 20 61 74 20 28 30 2c | top-lef|t at (0,|
|00003620| 30 29 20 61 6e 64 20 69 | 74 73 20 77 69 64 74 68 |0) and i|ts width|
|00003630| 20 61 6e 64 20 68 65 69 | 67 68 74 20 64 65 74 65 | and hei|ght dete|
|00003640| 72 6d 69 6e 65 64 20 62 | 79 20 74 68 65 20 72 75 |rmined b|y the ru|
|00003650| 6c 65 20 62 6f 6f 6b 2e | 0d 03 42 fc 00 71 01 f0 |le book.|..B..q..|
|00003660| 0e 00 71 01 14 01 c4 02 | 34 f7 ff 00 10 0c 00 f7 |..q.....|4.......|
|00003670| 0d 54 68 65 20 73 65 6d | 61 6e 74 69 63 73 20 6f |.The sem|antics o|
|00003680| 66 20 65 61 63 68 20 6f | 66 20 74 68 65 20 76 61 |f each o|f the va|
|00003690| 6c 75 65 73 20 6f 66 20 | 74 68 65 20 65 76 65 6e |lues of |the even|
|000036a0| 74 20 66 69 65 6c 64 20 | 69 73 20 64 69 73 63 75 |t field |is discu|
|000036b0| 73 73 65 64 20 69 6e 20 | 43 68 61 70 74 65 72 20 |ssed in |Chapter |
|000036c0| 35 2e 20 20 54 68 65 20 | 72 75 6c 65 20 62 6f 6f |5. The |rule boo|
|000036d0| 6b 20 63 61 6e 20 61 6c | 73 6f 20 6d 6f 64 69 66 |k can al|so modif|
|000036e0| 79 20 74 68 65 20 65 76 | 65 6e 74 20 66 69 65 6c |y the ev|ent fiel|
|000036f0| 64 20 69 6e 20 6f 72 64 | 65 72 20 74 6f 20 74 65 |d in ord|er to te|
|00003700| 6c 6c 20 47 61 6d 65 4d | 61 73 74 65 72 20 74 6f |ll GameM|aster to|
|00003710| 20 70 65 72 66 6f 72 6d | 20 63 65 72 74 61 69 6e | perform| certain|
|00003720| 20 61 63 74 69 6f 6e 73 | 2e 0d 49 66 20 74 68 65 | actions|..If the|
|00003730| 20 72 75 6c 65 20 62 6f | 6f 6b 20 72 65 63 65 69 | rule bo|ok recei|
|00003740| 76 65 73 20 61 6e 79 20 | 67 61 6d 65 20 65 76 65 |ves any |game eve|
|00003750| 6e 74 20 72 65 63 6f 72 | 64 73 20 77 69 74 68 20 |nt recor|ds with |
|00003760| 74 68 65 20 65 76 65 6e | 74 20 66 69 65 6c 64 20 |the even|t field |
|00003770| 73 65 74 20 74 6f 20 61 | 20 76 61 6c 75 65 20 6e |set to a| value n|
|00003780| 6f 74 20 69 6e 20 74 68 | 69 73 20 6c 69 73 74 20 |ot in th|is list |
|00003790| 74 68 65 6e 20 69 74 20 | 73 68 6f 75 6c 64 20 69 |then it |should i|
|000037a0| 67 6e 6f 72 65 20 74 68 | 65 20 65 76 65 6e 74 2e |gnore th|e event.|
|000037b0| 0d 0d fc 00 55 01 f0 0e | 00 55 01 14 01 c4 06 34 |....U...|.U.....4|
|000037c0| 07 88 f7 67 61 6d 65 20 | 3a 20 48 61 6e 64 6c 65 |...game |: Handle|
|000037d0| 3b 09 7b 20 52 65 61 64 | 20 4f 6e 6c 79 20 7d 0d |;.{ Read| Only }.|
|000037e0| fc 00 71 01 f0 0e 00 71 | 01 14 01 c4 02 34 f7 54 |..q....q|.....4.T|
|000037f0| 68 65 20 67 61 6d 65 20 | 66 69 65 6c 64 20 68 6f |he game |field ho|
|00003800| 6c 64 73 20 61 20 68 61 | 6e 64 6c 65 20 74 6f 20 |lds a ha|ndle to |
|00003810| 74 68 65 20 61 20 68 65 | 61 70 20 62 6c 6f 63 6b |the a he|ap block|
|00003820| 20 74 68 61 74 20 74 68 | 65 20 72 75 6c 65 20 62 | that th|e rule b|
|00003830| 6f 6f 6b 20 75 73 65 73 | 20 74 6f 20 73 74 6f 72 |ook uses| to stor|
|00003840| 65 20 74 68 65 20 73 74 | 61 74 65 20 69 6e 66 6f |e the st|ate info|
|00003850| 72 6d 61 74 69 6f 6e 20 | 28 6f 72 20 67 61 6d 65 |rmation |(or game|
|00003860| 20 72 65 63 6f 72 64 29 | 20 66 6f 72 20 65 61 63 | record)| for eac|
|00003870| 68 20 67 61 6d 65 2e 20 | 20 54 68 65 20 72 75 6c |h game. | The rul|
|00003880| 65 20 62 6f 6f 6b 20 6d | 75 73 74 20 63 61 73 74 |e book m|ust cast|
|00003890| 20 74 68 65 20 68 61 6e | 64 6c 65 20 74 6f 20 74 | the han|dle to t|
|000038a0| 68 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 74 |he appro|priate t|
|000038b0| 79 70 65 20 6f 66 20 69 | 74 73 20 67 61 6d 65 20 |ype of i|ts game |
|000038c0| 73 74 6f 72 61 67 65 2e | 20 20 54 68 65 20 68 61 |storage.| The ha|
|000038d0| 6e 64 6c 65 20 69 73 20 | 62 6f 74 68 20 61 6c 6c |ndle is |both all|
|000038e0| 6f 63 61 74 65 64 20 61 | 6e 64 20 64 65 61 6c 6c |ocated a|nd deall|
|000038f0| 6f 63 61 74 65 64 20 62 | 79 20 47 61 6d 65 4d 61 |ocated b|y GameMa|
|00003900| 73 74 65 72 20 62 75 74 | 20 74 68 65 20 72 75 6c |ster but| the rul|
|00003910| 65 20 62 6f 6f 6b 20 69 | 73 20 66 72 65 65 20 74 |e book i|s free t|
|00003920| 6f 20 72 65 73 69 7a 65 | 20 69 74 20 61 74 20 77 |o resize| it at w|
|00003930| 69 6c 6c 2e 20 20 49 66 | 20 74 68 65 20 67 61 6d |ill. If| the gam|
|00003940| 65 20 66 69 65 6c 64 20 | 69 73 20 6e 69 6c 20 74 |e field |is nil t|
|00003950| 68 65 6e 20 74 68 69 73 | 20 67 61 6d 65 20 72 65 |hen this| game re|
|00003960| 63 6f 72 64 20 68 61 73 | 20 6e 6f 74 20 79 65 74 |cord has| not yet|
|00003970| 20 62 65 65 6e 20 63 72 | 65 61 74 65 64 20 6f 72 | been cr|eated or|
|00003980| 20 68 61 73 20 61 6c 72 | 65 61 64 79 20 62 65 65 | has alr|eady bee|
|00003990| 6e 20 64 65 73 74 72 6f | 79 65 64 2e 0d 02 d6 0d |n destro|yed.....|
|000039a0| fc 00 55 01 f0 0e 00 55 | 01 14 01 c4 06 34 07 88 |..U....U|.....4..|
|000039b0| f7 67 6c 6f 62 61 6c 73 | 20 3a 20 48 61 6e 64 6c |.globals| : Handl|
|000039c0| 65 3b 09 7b 20 52 65 61 | 64 2f 57 72 69 74 65 20 |e;.{ Rea|d/Write |
|000039d0| 7d 0d fc 00 71 01 f0 0e | 00 71 01 14 01 c4 02 34 |}...q...|.q.....4|
|000039e0| f7 54 68 65 20 67 6c 6f | 62 61 6c 73 20 66 69 65 |.The glo|bals fie|
|000039f0| 6c 64 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 62 |ld can b|e used b|
|00003a00| 79 20 74 68 65 20 72 75 | 6c 65 20 62 6f 6f 6b 20 |y the ru|le book |
|00003a10| 74 6f 20 68 6f 6c 64 20 | 61 6e 79 20 61 72 62 69 |to hold |any arbi|
|00003a20| 74 72 61 72 79 20 64 61 | 74 61 20 69 74 20 72 65 |trary da|ta it re|
|00003a30| 71 75 69 72 65 73 2e 20 | 20 4e 6f 72 6d 61 6c 6c |quires. | Normall|
|00003a40| 79 20 74 68 69 73 20 77 | 6f 75 6c 64 20 62 65 20 |y this w|ould be |
|00003a50| 65 69 74 68 65 72 20 61 | 20 70 6f 69 6e 74 65 72 |either a| pointer|
|00003a60| 20 6f 72 20 61 20 68 61 | 6e 64 6c 65 20 74 6f 20 | or a ha|ndle to |
|00003a70| 69 74 73 20 67 6c 6f 62 | 61 6c 20 64 61 74 61 2e |its glob|al data.|
|00003a80| 20 20 54 68 65 20 72 75 | 6c 65 20 62 6f 6f 6b 20 | The ru|le book |
|00003a90| 6d 75 73 74 20 63 61 73 | 74 20 74 68 65 20 67 6c |must cas|t the gl|
|00003aa0| 6f 62 61 6c 73 20 68 61 | 6e 64 6c 65 20 74 6f 20 |obals ha|ndle to |
|00003ab0| 74 68 65 20 74 79 70 65 | 20 6f 66 20 74 68 65 20 |the type| of the |
|00003ac0| 67 6c 6f 62 61 6c 73 20 | 73 74 6f 72 61 67 65 20 |globals |storage |
|00003ad0| 74 68 61 74 20 69 74 20 | 75 73 65 73 2e 20 20 54 |that it |uses. T|
|00003ae0| 68 65 20 67 6c 6f 62 61 | 6c 73 20 66 69 65 6c 64 |he globa|ls field|
|00003af0| 20 69 73 20 74 68 65 20 | 73 61 6d 65 20 66 6f 72 | is the |same for|
|00003b00| 20 65 76 65 72 79 20 67 | 61 6d 65 20 70 6c 61 79 | every g|ame play|
|00003b10| 65 64 20 77 69 74 68 20 | 74 68 65 20 72 75 6c 65 |ed with |the rule|
|00003b20| 20 62 6f 6f 6b 2e 20 20 | 54 68 65 20 6f 6e 6c 79 | book. |The only|
|00003b30| 20 74 69 6d 65 20 74 68 | 61 74 20 74 68 65 20 72 | time th|at the r|
|00003b40| 75 6c 65 20 62 6f 6f 6b | 20 69 73 20 63 61 6c 6c |ule book| is call|
|00003b50| 65 64 20 77 69 74 68 6f | 75 74 20 61 20 76 61 6c |ed witho|ut a val|
|00003b60| 69 64 20 67 6c 6f 62 61 | 6c 73 20 66 69 65 6c 64 |id globa|ls field|
|00003b70| 20 69 6e 20 74 68 65 20 | 67 61 6d 65 20 65 76 65 | in the |game eve|
|00003b80| 6e 74 20 72 65 63 6f 72 | 64 20 69 73 20 6f 6e 20 |nt recor|d is on |
|00003b90| 67 65 5f 49 6e 69 74 52 | 75 6c 65 42 6f 6f 6b 20 |ge_InitR|uleBook |
|00003ba0| 61 74 20 77 68 69 63 68 | 20 74 69 6d 65 20 69 74 |at which| time it|
|00003bb0| 20 69 73 20 65 78 70 65 | 63 74 65 64 20 74 6f 20 | is expe|cted to |
|00003bc0| 73 65 74 20 69 74 20 75 | 70 2e 0d 0d fc 00 55 01 |set it u|p.....U.|
|00003bd0| f0 0e 00 55 01 14 01 c4 | 06 34 07 88 f7 77 68 65 |...U....|.4...whe|
|00003be0| 72 65 20 3a 20 50 6f 69 | 6e 74 3b 09 7b 20 52 65 |re : Poi|nt;.{ Re|
|00003bf0| 61 64 20 4f 6e 6c 79 20 | 7d 0d fc 00 71 01 f0 0e |ad Only |}...q...|
|00003c00| 00 71 01 14 01 c4 02 34 | f7 54 68 65 20 77 68 65 |.q.....4|.The whe|
|00003c10| 72 65 20 66 69 65 6c 64 | 20 69 73 20 75 73 65 64 |re field| is used|
|00003c20| 20 74 6f 20 63 6f 6d 6d | 75 6e 69 63 61 74 65 20 | to comm|unicate |
|00003c30| 74 68 65 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 20 |the coor|dinates |
|00003c40| 6f 66 20 74 68 65 20 6d | 6f 75 73 65 20 69 6e 20 |of the m|ouse in |
|00003c50| 6c 6f 63 61 6c 20 63 6f | 6f 72 64 69 6e 61 74 65 |local co|ordinate|
|00003c60| 73 20 6f 6e 20 63 65 72 | 74 61 69 6e 20 65 76 65 |s on cer|tain eve|
|00003c70| 6e 74 73 2e 0d 03 36 0d | fc 00 55 01 f0 0e 00 55 |nts...6.|..U....U|
|00003c80| 01 14 01 c4 06 34 07 88 | f7 6d 6f 64 69 66 69 65 |.....4..|.modifie|
|00003c90| 72 73 20 3a 20 69 6e 74 | 65 67 65 72 3b 09 7b 20 |rs : int|eger;.{ |
|00003ca0| 52 65 61 64 20 4f 6e 6c | 79 20 7d 0d fc 00 71 01 |Read Onl|y }...q.|
|00003cb0| f0 0e 00 71 01 14 01 c4 | 02 34 f7 54 68 65 20 6d |...q....|.4.The m|
|00003cc0| 6f 64 69 66 69 65 72 73 | 20 66 69 65 6c 64 20 69 |odifiers| field i|
|00003cd0| 73 20 75 73 65 64 20 74 | 6f 20 63 6f 6d 6d 75 6e |s used t|o commun|
|00003ce0| 69 63 61 74 65 20 74 68 | 65 20 63 75 72 72 65 6e |icate th|e curren|
|00003cf0| 74 20 6d 6f 64 69 66 69 | 65 72 73 20 74 6f 20 74 |t modifi|ers to t|
|00003d00| 68 65 20 72 75 6c 65 20 | 62 6f 6f 6b 20 6f 6e 20 |he rule |book on |
|00003d10| 63 65 72 74 61 69 6e 20 | 65 76 65 6e 74 73 2e 20 |certain |events. |
|00003d20| 20 54 68 65 20 62 69 74 | 73 20 69 6e 20 74 68 65 | The bit|s in the|
|00003d30| 20 66 69 65 6c 64 20 68 | 61 76 65 20 74 68 65 20 | field h|ave the |
|00003d40| 73 61 6d 65 20 6d 65 61 | 6e 69 6e 67 20 61 73 20 |same mea|ning as |
|00003d50| 74 68 65 20 6d 6f 64 69 | 66 69 65 72 73 20 66 69 |the modi|fiers fi|
|00003d60| 65 6c 64 20 69 6e 20 74 | 68 65 20 54 6f 6f 6c 62 |eld in t|he Toolb|
|00003d70| 6f 78 20 45 76 65 6e 74 | 52 65 63 6f 72 64 2e 0d |ox Event|Record..|
|00003d80| 0d fc 00 55 01 f0 0e 00 | 55 01 14 01 c4 06 34 07 |...U....|U.....4.|
|00003d90| 88 f7 6d 65 73 73 61 67 | 65 20 3a 20 73 74 72 32 |..messag|e : str2|
|00003da0| 35 35 3b 09 7b 20 52 65 | 61 64 2f 57 72 69 74 65 |55;.{ Re|ad/Write|
|00003db0| 20 7d 0d fc 00 71 01 f0 | 0e 00 71 01 14 01 c4 02 | }...q..|..q.....|
|00003dc0| 34 f7 54 68 65 20 6d 65 | 73 73 61 67 65 20 66 69 |4.The me|ssage fi|
|00003dd0| 65 6c 64 20 69 73 20 75 | 73 65 64 20 74 6f 20 68 |eld is u|sed to h|
|00003de0| 6f 6c 64 20 74 68 65 20 | 74 65 78 74 20 6f 66 20 |old the |text of |
|00003df0| 6d 65 73 73 61 67 65 73 | 20 64 69 73 70 6c 61 79 |messages| display|
|00003e00| 65 64 20 74 6f 20 74 68 | 65 20 75 73 65 72 20 61 |ed to th|e user a|
|00003e10| 6e 64 20 61 6c 73 6f 20 | 6d 65 73 73 61 67 65 73 |nd also |messages|
|00003e20| 20 73 65 6e 74 20 62 65 | 74 77 65 65 6e 20 72 75 | sent be|tween ru|
|00003e30| 6c 65 20 62 6f 6f 6b 73 | 20 63 6f 6e 6e 65 63 74 |le books| connect|
|00003e40| 65 64 20 76 69 61 20 74 | 68 65 20 6e 65 74 77 6f |ed via t|he netwo|
|00003e50| 72 6b 2e 20 20 54 68 65 | 20 6c 65 6e 67 74 68 20 |rk. The| length |
|00003e60| 6f 66 20 74 68 65 20 73 | 74 72 69 6e 67 20 69 6e |of the s|tring in|
|00003e70| 20 74 68 65 20 6d 65 73 | 73 61 67 65 20 66 69 65 | the mes|sage fie|
|00003e80| 6c 64 20 73 68 6f 75 6c | 64 20 61 6c 77 61 79 73 |ld shoul|d always|
|00003e90| 20 62 65 20 6c 65 73 73 | 20 74 68 61 6e 20 32 35 | be less| than 25|
|00003ea0| 30 20 63 68 61 72 61 63 | 74 65 72 73 2e 0d 0d fc |0 charac|ters....|
|00003eb0| 00 55 01 f0 0e 00 55 01 | 14 01 c4 06 34 07 88 f7 |.U....U.|....4...|
|00003ec0| 62 75 74 31 2c 20 62 75 | 74 32 20 3a 20 62 75 74 |but1, bu|t2 : but|
|00003ed0| 74 6f 6e 53 74 72 3b 09 | 7b 20 52 65 61 64 2f 57 |tonStr;.|{ Read/W|
|00003ee0| 72 69 74 65 20 7d 0d fc | 00 71 01 f0 0e 00 71 01 |rite }..|.q....q.|
|00003ef0| 14 01 c4 02 34 f7 54 68 | 65 20 62 75 74 31 20 61 |....4.Th|e but1 a|
|00003f00| 6e 64 20 62 75 74 32 20 | 66 69 65 6c 64 73 20 61 |nd but2 |fields a|
|00003f10| 72 65 20 75 73 65 64 20 | 74 6f 20 68 6f 6c 64 20 |re used |to hold |
|00003f20| 74 68 65 20 6c 61 62 65 | 6c 73 20 66 6f 72 20 62 |the labe|ls for b|
|00003f30| 75 74 74 6f 6e 73 20 74 | 68 61 74 20 74 68 65 20 |uttons t|hat the |
|00003f40| 72 75 6c 65 20 62 6f 6f | 6b 20 63 61 6e 20 67 65 |rule boo|k can ge|
|00003f50| 74 20 47 61 6d 65 4d 61 | 73 74 65 72 20 74 6f 20 |t GameMa|ster to |
|00003f60| 64 69 73 70 6c 61 79 20 | 75 73 69 6e 67 20 74 68 |display |using th|
|00003f70| 65 20 67 65 5f 41 73 6b | 20 65 76 65 6e 74 2e 20 |e ge_Ask| event. |
|00003f80| 20 54 68 65 20 62 75 74 | 74 6f 6e 53 74 72 20 74 | The but|tonStr t|
|00003f90| 79 70 65 20 69 73 20 64 | 65 66 69 6e 65 64 20 61 |ype is d|efined a|
|00003fa0| 73 20 66 6f 6c 6c 6f 77 | 73 3a d0 0d 0d 03 16 fc |s follow|s:......|
|00003fb0| 00 71 01 f0 0e 00 71 01 | 14 01 c4 02 34 f7 ff 00 |.q....q.|....4...|
|00003fc0| 10 0c 00 f7 0d 54 68 65 | 20 62 75 74 74 6f 6e 73 |.....The| buttons|
|00003fd0| 20 61 72 65 20 6f 66 20 | 61 20 66 69 78 65 64 20 | are of |a fixed |
|00003fe0| 73 69 7a 65 20 61 6e 64 | 20 79 6f 75 20 73 68 6f |size and| you sho|
|00003ff0| 75 6c 64 20 6d 61 6b 65 | 20 73 75 72 65 20 74 68 |uld make| sure th|
|00004000| 61 74 20 79 6f 75 72 20 | 62 75 74 74 6f 6e 20 73 |at your |button s|
|00004010| 74 72 69 6e 67 73 20 66 | 69 74 2e 0d 0d fc 00 55 |trings f|it.....U|
|00004020| 01 f0 0e 00 55 01 14 01 | c4 06 34 07 88 f7 69 6e |....U...|..4...in|
|00004030| 74 31 2c 20 69 6e 74 32 | 20 3a 20 69 6e 74 65 67 |t1, int2| : integ|
|00004040| 65 72 3b 09 7b 20 52 65 | 61 64 2f 57 72 69 74 65 |er;.{ Re|ad/Write|
|00004050| 20 7d 0d fc 00 71 01 f0 | 0e 00 71 01 14 01 c4 02 | }...q..|..q.....|
|00004060| 34 f7 54 68 65 20 69 6e | 74 31 20 61 6e 64 20 69 |4.The in|t1 and i|
|00004070| 6e 74 32 20 66 69 65 6c | 64 73 20 61 72 65 20 75 |nt2 fiel|ds are u|
|00004080| 73 65 64 20 74 6f 20 68 | 6f 6c 64 20 67 65 6e 65 |sed to h|old gene|
|00004090| 72 69 63 20 69 6e 74 65 | 67 65 72 73 2e 20 20 54 |ric inte|gers. T|
|000040a0| 68 65 20 73 65 6d 61 6e | 74 69 63 73 20 6f 66 20 |he seman|tics of |
|000040b0| 74 68 65 73 65 20 66 69 | 65 6c 64 73 20 69 73 20 |these fi|elds is |
|000040c0| 65 76 65 6e 74 20 64 65 | 70 65 6e 64 65 6e 74 2e |event de|pendent.|
|000040d0| 0d 0d fc 00 55 01 f0 0e | 00 55 01 14 01 c4 06 34 |....U...|.U.....4|
|000040e0| 07 88 f7 6c 6f 6e 67 31 | 20 3a 20 6c 6f 6e 67 69 |...long1| : longi|
|000040f0| 6e 74 3b 09 7b 20 52 65 | 61 64 2f 57 72 69 74 65 |nt;.{ Re|ad/Write|
|00004100| 20 7d 0d fc 00 71 01 f0 | 0e 00 71 01 14 01 c4 02 | }...q..|..q.....|
|00004110| 34 f7 54 68 65 20 6c 6f | 6e 67 31 20 66 69 65 6c |4.The lo|ng1 fiel|
|00004120| 64 20 69 73 20 75 73 65 | 64 20 74 6f 20 68 6f 6c |d is use|d to hol|
|00004130| 64 20 61 20 67 65 6e 65 | 72 69 63 20 6c 6f 6e 67 |d a gene|ric long|
|00004140| 69 6e 74 2e 20 20 54 68 | 65 20 73 65 6d 61 6e 74 |int. Th|e semant|
|00004150| 69 63 73 20 6f 66 20 74 | 68 69 73 20 66 69 65 6c |ics of t|his fiel|
|00004160| 64 20 69 73 20 65 76 65 | 6e 74 20 64 65 70 65 6e |d is eve|nt depen|
|00004170| 64 65 6e 74 2e 0d 0d fc | 00 55 01 f0 0e 00 55 01 |dent....|.U....U.|
|00004180| 14 01 c4 06 34 07 88 f7 | 6d 6f 64 69 66 69 65 64 |....4...|modified|
|00004190| 20 3a 20 62 6f 6f 6c 65 | 61 6e 3b 09 7b 20 52 65 | : boole|an;.{ Re|
|000041a0| 61 64 2f 57 72 69 74 65 | 20 7d 0d fc 00 71 01 f0 |ad/Write| }...q..|
|000041b0| 0e 00 71 01 14 01 c4 02 | 34 f7 54 68 65 20 6d 6f |..q.....|4.The mo|
|000041c0| 64 69 66 69 65 64 20 66 | 69 65 6c 64 20 69 73 20 |dified f|ield is |
|000041d0| 75 73 65 64 20 74 6f 20 | 6b 65 65 70 20 74 72 61 |used to |keep tra|
|000041e0| 63 6b 20 6f 66 20 77 68 | 65 74 68 65 72 20 74 68 |ck of wh|ether th|
|000041f0| 65 20 67 61 6d 65 20 72 | 65 66 65 72 65 6e 63 65 |e game r|eference|
|00004200| 64 20 62 79 20 74 68 65 | 20 67 61 6d 65 20 65 76 |d by the| game ev|
|00004210| 65 6e 74 20 72 65 63 6f | 72 64 20 68 61 73 20 62 |ent reco|rd has b|
|00004220| 65 65 6e 20 6d 6f 64 69 | 66 69 65 64 20 73 69 6e |een modi|fied sin|
|00004230| 63 65 20 69 74 20 77 61 | 73 20 6c 61 73 74 20 73 |ce it wa|s last s|
|00004240| 61 76 65 64 2e 20 20 53 | 65 74 20 74 68 69 73 20 |aved. S|et this |
|00004250| 66 69 65 6c 64 20 74 6f | 20 74 72 75 65 20 69 66 |field to| true if|
|00004260| 20 79 6f 75 20 6d 6f 64 | 69 66 79 20 61 6e 79 74 | you mod|ify anyt|
|00004270| 68 69 6e 67 20 69 6d 70 | 6f 72 74 61 6e 74 20 69 |hing imp|ortant i|
|00004280| 6e 20 74 68 65 20 67 61 | 6d 65 20 73 74 61 74 65 |n the ga|me state|
|00004290| 2e 0d 0d fc 00 55 01 f0 | 0e 00 55 01 14 01 c4 06 |.....U..|..U.....|
|000042a0| 34 07 88 f7 6d 79 74 75 | 72 6e 20 3a 20 62 6f 6f |4...mytu|rn : boo|
|000042b0| 6c 65 61 6e 3b 09 7b 20 | 52 65 61 64 2f 57 72 69 |lean;.{ |Read/Wri|
|000042c0| 74 65 20 7d 0d 03 51 fc | 00 71 01 f0 0e 00 71 01 |te }..Q.|.q....q.|
|000042d0| 14 01 c4 02 34 f7 54 68 | 65 20 6d 79 74 75 72 6e |....4.Th|e myturn|
|000042e0| 20 66 69 65 6c 64 20 69 | 73 20 75 73 65 64 20 74 | field i|s used t|
|000042f0| 6f 20 6b 65 65 70 20 74 | 72 61 63 6b 20 6f 66 20 |o keep t|rack of |
|00004300| 77 68 65 74 68 65 72 20 | 47 61 6d 65 4d 61 73 74 |whether |GameMast|
|00004310| 65 72 20 73 68 6f 75 6c | 64 20 73 65 6e 64 20 79 |er shoul|d send y|
|00004320| 6f 75 20 63 65 72 74 61 | 69 6e 20 65 76 65 6e 74 |ou certa|in event|
|00004330| 73 2e 20 20 49 66 20 74 | 68 65 20 67 61 6d 65 20 |s. If t|he game |
|00004340| 68 61 73 20 6e 6f 74 20 | 62 65 65 6e 20 63 6f 6e |has not |been con|
|00004350| 6e 65 63 74 65 64 20 74 | 68 65 6e 20 74 68 65 20 |nected t|hen the |
|00004360| 72 75 6c 65 20 62 6f 6f | 6b 20 73 68 6f 75 6c 64 |rule boo|k should|
|00004370| 20 73 65 74 20 6d 79 74 | 75 72 6e 20 74 6f 20 74 | set myt|urn to t|
|00004380| 72 75 65 20 74 6f 20 72 | 65 63 65 69 76 65 20 61 |rue to r|eceive a|
|00004390| 6c 6c 20 65 76 65 6e 74 | 73 2e 20 20 49 66 20 74 |ll event|s. If t|
|000043a0| 68 65 20 67 61 6d 65 20 | 68 61 73 20 62 65 65 6e |he game |has been|
|000043b0| 20 63 6f 6e 6e 65 63 74 | 65 64 20 74 68 65 6e 20 | connect|ed then |
|000043c0| 74 68 65 20 73 74 61 74 | 65 20 6f 66 20 6d 79 74 |the stat|e of myt|
|000043d0| 75 72 6e 20 64 65 74 65 | 72 6d 69 6e 65 73 20 77 |urn dete|rmines w|
|000043e0| 68 69 63 68 20 67 61 6d | 65 20 69 73 20 69 6e 20 |hich gam|e is in |
|000043f0| 63 6f 6e 74 72 6f 6c 2e | 20 20 49 66 20 6d 79 74 |control.| If myt|
|00004400| 75 72 6e 20 69 73 20 66 | 61 6c 73 65 20 74 68 65 |urn is f|alse the|
|00004410| 6e 20 47 61 6d 65 4d 61 | 73 74 65 72 20 77 69 6c |n GameMa|ster wil|
|00004420| 6c 20 6e 6f 74 20 73 65 | 6e 64 20 79 6f 75 20 74 |l not se|nd you t|
|00004430| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 65 76 65 |he follo|wing eve|
|00004440| 6e 74 73 3a d0 0d fc 00 | 8d 01 f0 0e 00 7f 01 10 |nts:....|........|
|00004450| 01 c4 f7 a5 09 67 65 5f | 4d 6f 75 73 65 44 6f 77 |.....ge_|MouseDow|
|00004460| 6e 0d a5 09 67 65 5f 4b | 65 79 44 6f 77 6e 0d fc |n...ge_K|eyDown..|
|00004470| 00 71 01 f0 0e 00 71 01 | 14 01 c4 02 34 f7 54 68 |.q....q.|....4.Th|
|00004480| 65 20 72 65 61 73 6f 6e | 20 77 68 79 20 6d 79 74 |e reason| why myt|
|00004490| 75 72 6e 20 65 78 69 73 | 74 73 20 69 73 20 74 6f |urn exis|ts is to|
|000044a0| 20 70 72 65 76 65 6e 74 | 20 61 6c 6c 20 73 6f 72 | prevent| all sor|
|000044b0| 74 73 20 6f 66 20 68 6f | 72 72 69 62 6c 65 20 72 |ts of ho|rrible r|
|000044c0| 61 63 65 20 63 6f 6e 64 | 69 74 69 6f 6e 73 20 77 |ace cond|itions w|
|000044d0| 68 69 6c 65 20 74 68 65 | 20 63 6f 6e 6e 65 63 74 |hile the| connect|
|000044e0| 69 6f 6e 20 69 73 20 62 | 65 69 6e 67 20 61 72 62 |ion is b|eing arb|
|000044f0| 69 74 72 61 74 65 64 2e | 0d 49 66 20 74 68 65 20 |itrated.|.If the |
|00004500| 6c 6f 63 61 6c 20 67 61 | 6d 65 20 69 73 20 69 6e |local ga|me is in|
|00004510| 20 63 6f 6e 74 72 6f 6c | 20 74 68 65 6e 20 74 68 | control| then th|
|00004520| 65 20 6c 6f 63 61 6c 20 | 6d 79 74 75 72 6e 20 66 |e local |myturn f|
|00004530| 69 65 6c 64 20 77 69 6c | 6c 20 62 65 20 74 72 75 |ield wil|l be tru|
|00004540| 65 2e 20 20 49 66 20 74 | 68 65 20 72 65 6d 6f 74 |e. If t|he remot|
|00004550| 65 20 67 61 6d 65 20 69 | 73 20 69 6e 20 63 6f 6e |e game i|s in con|
|00004560| 74 72 6f 6c 20 74 68 65 | 6e 20 74 68 65 20 6c 6f |trol the|n the lo|
|00004570| 63 61 6c 20 6d 79 74 75 | 72 6e 20 66 69 65 6c 64 |cal mytu|rn field|
|00004580| 20 77 69 6c 6c 20 62 65 | 20 66 61 6c 73 65 2e 20 | will be| false. |
|00004590| 20 49 66 20 62 6f 74 68 | 20 67 61 6d 65 73 20 77 | If both| games w|
|000045a0| 61 6e 74 20 63 6f 6e 74 | 72 6f 6c 20 74 68 65 6e |ant cont|rol then|
|000045b0| 20 62 6f 74 68 20 67 61 | 6d 65 73 20 73 68 6f 75 | both ga|mes shou|
|000045c0| 6c 64 20 68 61 76 65 20 | 6d 79 74 75 72 6e 20 73 |ld have |myturn s|
|000045d0| 65 74 2e 20 20 49 74 20 | 77 6f 75 6c 64 20 62 65 |et. It |would be|
|000045e0| 20 65 78 74 72 65 6d 65 | 6c 79 20 75 6e 75 73 75 | extreme|ly unusu|
|000045f0| 61 6c 20 66 6f 72 20 62 | 6f 74 68 20 67 61 6d 65 |al for b|oth game|
|00004600| 73 20 74 6f 20 68 61 76 | 65 20 6d 79 74 75 72 6e |s to hav|e myturn|
|00004610| 20 66 61 6c 73 65 2e 0d | 02 16 ff 00 10 0e 01 f7 | false..|........|
|00004620| fc 00 55 01 f0 0e 00 55 | 01 10 01 c4 07 88 f7 35 |..U....U|.......5|
|00004630| 2e 09 54 68 65 20 47 61 | 6d 65 20 45 76 65 6e 74 |..The Ga|me Event|
|00004640| 73 f9 00 f7 ff 00 10 0c | 00 f7 0d fc 00 71 01 f0 |s.......|.....q..|
|00004650| 0e 00 71 01 14 01 c4 02 | 34 f7 0d 57 68 65 6e 20 |..q.....|4..When |
|00004660| 47 61 6d 65 4d 61 73 74 | 65 72 20 64 65 74 65 63 |GameMast|er detec|
|00004670| 74 73 20 63 65 72 74 61 | 69 6e 20 63 6f 6e 64 69 |ts certa|in condi|
|00004680| 74 69 6f 6e 73 2c 20 6f | 72 20 72 65 71 75 69 72 |tions, o|r requir|
|00004690| 65 73 20 73 70 65 63 69 | 66 69 63 20 69 6e 66 6f |es speci|fic info|
|000046a0| 72 6d 61 74 69 6f 6e 2c | 20 69 74 20 73 65 6e 64 |rmation,| it send|
|000046b0| 73 20 74 68 65 20 72 75 | 6c 65 20 62 6f 6f 6b 20 |s the ru|le book |
|000046c0| 61 6e 20 65 76 65 6e 74 | 2e 20 20 54 68 65 20 6d |an event|. The m|
|000046d0| 65 61 6e 69 6e 67 20 6f | 66 20 65 61 63 68 20 65 |eaning o|f each e|
|000046e0| 76 65 6e 74 20 69 73 20 | 64 65 74 65 72 6d 69 6e |vent is |determin|
|000046f0| 65 64 20 62 79 20 74 68 | 65 20 65 76 65 6e 74 20 |ed by th|e event |
|00004700| 66 69 65 6c 64 20 6f 66 | 20 74 68 65 20 67 61 6d |field of| the gam|
|00004710| 65 20 65 76 65 6e 74 20 | 72 65 63 6f 72 64 2e 20 |e event |record. |
|00004720| 20 54 68 65 20 65 76 65 | 6e 74 73 20 63 61 6e 20 | The eve|nts can |
|00004730| 62 65 20 67 72 6f 75 70 | 65 64 20 69 6e 74 6f 20 |be group|ed into |
|00004740| 36 20 63 6c 61 73 73 65 | 73 3a 20 20 52 75 6c 65 |6 classe|s: Rule|
|00004750| 20 42 6f 6f 6b 20 4f 70 | 65 6e 2f 43 6c 6f 73 65 | Book Op|en/Close|
|00004760| 2c 20 47 61 6d 65 20 4f | 70 65 6e 2f 43 6c 6f 73 |, Game O|pen/Clos|
|00004770| 65 2c 20 47 61 6d 65 20 | 43 6f 6d 6d 75 6e 69 63 |e, Game |Communic|
|00004780| 61 74 69 6f 6e 73 2c 20 | 47 61 6d 65 20 43 6f 6e |ations, |Game Con|
|00004790| 74 72 6f 6c 2c 20 47 61 | 6d 65 20 49 6e 70 75 74 |trol, Ga|me Input|
|000047a0| 2c 20 47 61 6d 65 20 52 | 65 74 75 72 6e 2e 0d 0d |, Game R|eturn...|
|000047b0| fc 00 55 01 f0 0e 00 55 | 01 10 01 c4 07 88 f7 ff |..U....U|........|
|000047c0| 00 10 0e 00 f7 35 2e 31 | 2e 09 4e 6f 74 61 74 69 |.....5.1|..Notati|
|000047d0| 6f 6e 20 43 6f 6e 76 65 | 6e 74 69 6f 6e 73 ff 00 |on Conve|ntions..|
|000047e0| 10 0c 00 f7 0d fc 00 71 | 01 f0 0e 00 71 01 14 01 |.......q|....q...|
|000047f0| c4 02 34 f7 0d 45 61 63 | 68 20 65 76 65 6e 74 20 |..4..Eac|h event |
|00004800| 64 65 73 63 72 69 62 65 | 64 20 68 61 73 20 61 20 |describe|d has a |
|00004810| 73 75 6d 6d 61 72 79 20 | 69 6e 20 74 68 65 20 66 |summary |in the f|
|00004820| 6f 6c 6c 6f 77 69 6e 67 | 20 66 6f 72 6d 3a d0 0d |ollowing| form:..|
|00004830| 02 80 fc 00 71 01 f0 0e | 00 71 01 14 01 c4 02 34 |....q...|.q.....4|
|00004840| f7 54 68 65 20 66 69 72 | 73 74 20 63 6f 6c 75 6d |.The fir|st colum|
|00004850| 6e 20 69 73 20 74 68 65 | 20 66 69 65 6c 64 20 6e |n is the| field n|
|00004860| 61 6d 65 2e 20 20 54 68 | 65 20 6e 65 78 74 20 63 |ame. Th|e next c|
|00004870| 6f 6c 75 6d 6e 20 69 73 | 20 74 68 65 20 74 79 70 |olumn is| the typ|
|00004880| 65 20 6f 66 20 74 68 65 | 20 66 69 65 6c 64 2e 20 |e of the| field. |
|00004890| 20 54 68 65 20 74 68 69 | 72 64 20 63 6f 6c 75 6d | The thi|rd colum|
|000048a0| 6e 20 73 68 6f 77 73 20 | 77 68 6f 20 69 73 20 72 |n shows |who is r|
|000048b0| 65 73 70 6f 6e 73 69 62 | 6c 65 20 66 6f 72 20 73 |esponsib|le for s|
|000048c0| 65 74 74 69 6e 67 20 74 | 68 65 20 66 69 65 6c 64 |etting t|he field|
|000048d0| 2e 20 20 54 68 65 20 6c | 61 73 74 20 63 6f 6c 75 |. The l|ast colu|
|000048e0| 6d 6e 20 67 69 76 65 73 | 20 61 20 63 6f 6d 6d 65 |mn gives| a comme|
|000048f0| 6e 74 20 61 73 20 74 6f | 20 77 68 61 74 20 74 68 |nt as to| what th|
|00004900| 65 20 66 69 65 6c 64 20 | 63 6f 6e 74 61 69 6e 73 |e field |contains|
|00004910| 2e 0d 49 66 20 74 68 65 | 20 66 69 65 6c 64 20 69 |..If the| field i|
|00004920| 73 20 6d 61 72 6b 65 64 | 20 77 69 74 68 20 61 20 |s marked| with a |
|00004930| 63 6f 6e 67 72 75 65 6e | 74 20 28 ff 00 17 0c 00 |congruen|t (.....|
|00004940| f7 ba ff 00 10 0c 00 f7 | 29 20 74 68 65 6e 20 74 |........|) then t|
|00004950| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 74 |he conte|nts of t|
|00004960| 68 61 74 20 66 69 65 6c | 64 20 61 72 65 20 73 65 |hat fiel|d are se|
|00004970| 74 20 74 6f 20 61 20 70 | 61 72 74 69 63 75 6c 61 |t to a p|articula|
|00004980| 72 20 76 61 6c 75 65 2e | 20 20 54 68 65 20 72 75 |r value.| The ru|
|00004990| 6c 65 20 62 6f 6f 6b 20 | 63 61 6e 20 72 65 6c 79 |le book |can rely|
|000049a0| 20 6f 6e 20 74 68 61 74 | 20 76 61 6c 75 65 20 62 | on that| value b|
|000049b0| 65 69 6e 67 20 70 72 65 | 73 65 6e 74 20 62 75 74 |eing pre|sent but|
|000049c0| 20 6d 75 73 74 20 6e 6f | 74 20 63 68 61 6e 67 65 | must no|t change|
|000049d0| 20 69 74 2e 0d 49 66 20 | 74 68 65 20 66 69 65 6c | it..If |the fiel|
|000049e0| 64 20 69 73 20 6d 61 72 | 6b 65 64 20 77 69 74 68 |d is mar|ked with|
|000049f0| 20 61 6e 20 6f 75 74 20 | 61 72 72 6f 77 20 28 ff | an out |arrow (.|
|00004a00| 00 17 0c 00 f7 de ff 00 | 10 0c 00 f7 29 20 74 68 |........|....) th|
|00004a10| 65 6e 20 74 68 65 20 72 | 75 6c 65 20 62 6f 6f 6b |en the r|ule book|
|00004a20| 20 6d 75 73 74 20 73 65 | 74 20 74 68 65 20 66 69 | must se|t the fi|
|00004a30| 65 6c 64 20 74 6f 20 61 | 6e 20 61 70 70 72 6f 70 |eld to a|n approp|
|00004a40| 72 69 61 74 65 20 76 61 | 6c 75 65 20 62 65 66 6f |riate va|lue befo|
|00004a50| 72 65 20 72 65 74 75 72 | 6e 69 6e 67 20 74 6f 20 |re retur|ning to |
|00004a60| 47 61 6d 65 4d 61 73 74 | 65 72 2e 20 20 55 6e 6c |GameMast|er. Unl|
|00004a70| 65 73 73 20 6f 74 68 65 | 72 77 69 73 65 20 6e 6f |ess othe|rwise no|
|00004a80| 74 65 64 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |ted the |value of|
|00004a90| 20 74 68 65 20 66 69 65 | 6c 64 20 6f 6e 20 65 6e | the fie|ld on en|
|00004aa0| 74 72 79 20 69 73 20 75 | 6e 64 65 66 69 6e 65 64 |try is u|ndefined|
|00004ab0| 2e 0d 03 3c 49 66 20 74 | 68 65 20 66 69 65 6c 64 |...<If t|he field|
|00004ac0| 20 69 73 20 6d 61 72 6b | 65 64 20 77 69 74 68 20 | is mark|ed with |
|00004ad0| 61 6e 20 69 6e 20 61 72 | 72 6f 77 20 28 ff 00 17 |an in ar|row (...|
|00004ae0| 0c 00 f7 dc ff 00 10 0c | 00 f7 29 20 74 68 65 6e |........|..) then|
|00004af0| 20 74 68 65 20 66 69 65 | 6c 64 20 63 6f 6e 74 61 | the fie|ld conta|
|00004b00| 69 6e 73 20 61 6e 20 61 | 70 70 72 6f 70 72 69 61 |ins an a|ppropria|
|00004b10| 74 65 20 76 61 6c 75 65 | 20 6f 6e 20 65 6e 74 72 |te value| on entr|
|00004b20| 79 2e 20 20 55 6e 6c 65 | 73 73 20 6f 74 68 65 72 |y. Unle|ss other|
|00004b30| 77 69 73 65 20 6e 6f 74 | 65 64 20 47 61 6d 65 4d |wise not|ed GameM|
|00004b40| 61 73 74 65 72 20 64 6f | 65 73 6e d5 74 20 63 61 |aster do|esn.t ca|
|00004b50| 72 65 20 77 68 61 74 20 | 74 68 65 20 76 61 6c 75 |re what |the valu|
|00004b60| 65 20 69 73 20 77 68 65 | 6e 20 79 6f 75 20 72 65 |e is whe|n you re|
|00004b70| 74 75 72 6e 2e 0d 49 66 | 20 74 68 65 20 66 69 65 |turn..If| the fie|
|00004b80| 6c 64 20 69 73 20 6d 61 | 72 6b 65 64 20 77 69 74 |ld is ma|rked wit|
|00004b90| 68 20 61 20 62 69 64 69 | 72 65 63 74 69 6f 6e 61 |h a bidi|rectiona|
|00004ba0| 6c 20 61 72 72 6f 77 20 | 28 ff 00 17 0c 00 f7 db |l arrow |(.......|
|00004bb0| ff 00 10 0c 00 f7 29 20 | 74 68 65 6e 20 47 61 6d |......) |then Gam|
|00004bc0| 65 4d 61 73 74 65 72 20 | 73 65 74 73 20 74 68 65 |eMaster |sets the|
|00004bd0| 20 66 69 65 6c 64 20 74 | 6f 20 61 20 76 61 6c 75 | field t|o a valu|
|00004be0| 65 20 77 68 69 63 68 20 | 74 68 65 20 72 75 6c 65 |e which |the rule|
|00004bf0| 20 62 6f 6f 6b 20 63 61 | 6e 20 75 73 65 2e 20 20 | book ca|n use. |
|00004c00| 54 68 65 20 72 75 6c 65 | 20 62 6f 6f 6b 20 6d 75 |The rule| book mu|
|00004c10| 73 74 20 75 70 64 61 74 | 65 20 28 69 66 20 6e 65 |st updat|e (if ne|
|00004c20| 63 65 73 73 61 72 79 29 | 20 74 68 61 74 20 76 61 |cessary)| that va|
|00004c30| 6c 75 65 20 62 65 66 6f | 72 65 20 69 74 20 72 65 |lue befo|re it re|
|00004c40| 74 75 72 6e 73 2e 0d 49 | 66 20 74 68 65 20 66 69 |turns..I|f the fi|
|00004c50| 65 6c 64 20 69 73 20 6d | 69 73 73 69 6e 67 20 74 |eld is m|issing t|
|00004c60| 68 65 6e 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |hen the |value of|
|00004c70| 20 74 68 65 20 66 69 65 | 6c 64 20 69 73 20 75 6e | the fie|ld is un|
|00004c80| 64 65 66 69 6e 65 64 20 | 61 6e 64 20 74 68 65 20 |defined |and the |
|00004c90| 72 75 6c 65 20 62 6f 6f | 6b 20 6d 75 73 74 20 6e |rule boo|k must n|
|00004ca0| 65 69 74 68 65 72 20 72 | 65 6c 79 20 6f 6e 20 6e |either r|ely on n|
|00004cb0| 6f 72 20 63 68 61 6e 67 | 65 20 69 74 2e 0d 0d fc |or chang|e it....|
|00004cc0| 00 55 01 f0 0e 00 55 01 | 10 01 c4 07 88 f7 ff 00 |.U....U.|........|
|00004cd0| 10 0e 00 f7 35 2e 32 2e | 09 52 75 6c 65 20 42 6f |....5.2.|.Rule Bo|
|00004ce0| 6f 6b 20 4f 70 65 6e 2f | 43 6c 6f 73 65 20 45 76 |ok Open/|Close Ev|
|00004cf0| 65 6e 74 73 ff 00 10 0c | 00 f7 0d fc 00 71 01 f0 |ents....|.....q..|
|00004d00| 0e 00 71 01 14 01 c4 02 | 34 f7 0d 54 68 65 73 65 |..q.....|4..These|
|00004d10| 20 52 75 6c 65 20 42 6f | 6f 6b 20 4f 70 65 6e 2f | Rule Bo|ok Open/|
|00004d20| 43 6c 6f 73 65 20 45 76 | 65 6e 74 73 20 61 72 65 |Close Ev|ents are|
|00004d30| 20 73 70 65 63 69 61 6c | 20 69 6e 20 74 68 61 74 | special| in that|
|00004d40| 20 74 68 65 79 20 61 72 | 65 20 74 68 65 20 6f 6e | they ar|e the on|
|00004d50| 6c 79 20 65 76 65 6e 74 | 73 20 74 68 61 74 20 63 |ly event|s that c|
|00004d60| 61 6e 20 62 65 20 73 65 | 6e 74 20 74 6f 20 74 68 |an be se|nt to th|
|00004d70| 65 20 72 75 6c 65 20 62 | 6f 6f 6b 20 77 69 74 68 |e rule b|ook with|
|00004d80| 6f 75 74 20 61 20 76 61 | 6c 69 64 20 67 61 6d 65 |out a va|lid game|
|00004d90| 2e 20 20 54 68 75 73 20 | 74 68 65 20 67 61 6d 65 |. Thus |the game|
|00004da0| 20 66 69 65 6c 64 20 6f | 66 20 74 68 65 20 67 61 | field o|f the ga|
|00004db0| 6d 65 20 65 76 65 6e 74 | 20 72 65 63 6f 72 64 20 |me event| record |
|00004dc0| 69 73 20 6e 69 6c 20 61 | 6e 64 20 74 68 65 50 6f |is nil a|nd thePo|
|00004dd0| 72 74 20 69 73 20 6e 6f | 74 20 73 65 74 20 74 6f |rt is no|t set to|
|00004de0| 20 61 20 67 61 6d 65 20 | 77 69 6e 64 6f 77 2e 0d | a game |window..|
|00004df0| 01 7e 0d fc 00 55 01 f0 | 0e 00 55 01 14 01 c4 06 |.~...U..|..U.....|
|00004e00| 34 07 88 f7 67 65 5f 49 | 6e 69 74 52 75 6c 65 42 |4...ge_I|nitRuleB|
|00004e10| 6f 6f 6b 0d fc 00 71 01 | f0 0e 00 71 01 14 01 c4 |ook...q.|...q....|
|00004e20| 02 34 f7 47 61 6d 65 4d | 61 73 74 65 72 20 67 75 |.4.GameM|aster gu|
|00004e30| 61 72 61 6e 74 65 65 73 | 20 74 68 61 74 20 74 68 |arantees| that th|
|00004e40| 65 20 66 69 72 73 74 20 | 65 76 65 6e 74 20 69 74 |e first |event it|
|00004e50| 20 77 69 6c 6c 20 65 76 | 65 72 20 73 65 6e 64 20 | will ev|er send |
|00004e60| 74 6f 20 61 20 72 75 6c | 65 20 62 6f 6f 6b 20 69 |to a rul|e book i|
|00004e70| 73 20 74 68 65 20 67 65 | 5f 49 6e 69 74 52 75 6c |s the ge|_InitRul|
|00004e80| 65 42 6f 6f 6b 20 65 76 | 65 6e 74 2e 20 20 54 68 |eBook ev|ent. Th|
|00004e90| 65 20 72 75 6c 65 20 62 | 6f 6f 6b 20 63 61 6e 20 |e rule b|ook can |
|00004ea0| 73 74 6f 72 65 20 61 6e | 79 20 34 20 62 79 74 65 |store an|y 4 byte|
|00004eb0| 20 76 61 6c 75 65 20 69 | 6e 20 74 68 65 20 67 6c | value i|n the gl|
|00004ec0| 6f 62 61 6c 73 20 66 69 | 65 6c 64 20 61 6e 64 20 |obals fi|eld and |
|00004ed0| 70 65 72 66 6f 72 6d 20 | 61 6e 79 20 6f 74 68 65 |perform |any othe|
|00004ee0| 72 20 69 6e 69 74 69 61 | 6c 69 73 61 74 69 6f 6e |r initia|lisation|
|00004ef0| 2e 20 20 4e 6f 72 6d 61 | 6c 6c 79 20 74 68 65 20 |. Norma|lly the |
|00004f00| 72 75 6c 65 20 62 6f 6f | 6b 20 77 6f 75 6c 64 20 |rule boo|k would |
|00004f10| 61 6c 6c 6f 63 61 74 65 | 20 61 6e 79 20 67 6c 6f |allocate| any glo|
|00004f20| 62 61 6c 20 64 61 74 61 | 20 6f 6e 20 74 68 65 20 |bal data| on the |
|00004f30| 68 65 61 70 20 61 6e 64 | 20 73 74 6f 72 65 20 61 |heap and| store a|
|00004f40| 20 70 6f 69 6e 74 65 72 | 20 6f 72 20 68 61 6e 64 | pointer| or hand|
|00004f50| 6c 65 20 74 6f 20 69 74 | 20 69 6e 20 74 68 65 20 |le to it| in the |
|00004f60| 67 6c 6f 62 61 6c 73 20 | 66 69 65 6c 64 73 2e 0d |globals |fields..|
|00004f70| 01 ed fc 00 71 01 f0 0e | 00 71 01 14 01 c4 02 34 |....q...|.q.....4|
|00004f80| f7 4f 6e 20 72 65 74 75 | 72 6e 20 66 72 6f 6d 20 |.On retu|rn from |
|00004f90| 74 68 69 73 20 65 76 65 | 6e 74 20 47 61 6d 65 4d |this eve|nt GameM|
|00004fa0| 61 73 74 65 72 20 65 78 | 70 65 63 74 73 20 74 68 |aster ex|pects th|
|00004fb0| 61 74 20 74 68 65 20 77 | 69 64 74 68 20 6f 66 20 |at the w|idth of |
|00004fc0| 74 68 65 20 67 61 6d 65 | d5 73 20 70 6c 61 79 20 |the game|.s play |
|00004fd0| 61 72 65 61 20 62 65 20 | 73 74 6f 72 65 64 20 69 |area be |stored i|
|00004fe0| 6e 20 69 6e 74 31 20 61 | 6e 64 20 74 68 65 20 68 |n int1 a|nd the h|
|00004ff0| 65 69 67 68 74 20 69 6e | 20 69 6e 74 32 2e 0d ff |eight in| int2...|
|00005000| 00 10 0c 00 f7 ff 00 17 | 0c 00 f7 0d fc 00 55 01 |........|......U.|
|00005010| f0 0e 00 55 01 14 01 c4 | 06 34 07 88 f7 ff 00 10 |...U....|.4......|
|00005020| 0c 00 f7 67 65 5f 46 69 | 6e 69 73 68 52 75 6c 65 |...ge_Fi|nishRule|
|00005030| 42 6f 6f 6b 0d fc 00 71 | 01 f0 0e 00 71 01 14 01 |Book...q|....q...|
|00005040| c4 02 34 f7 47 61 6d 65 | 4d 61 73 74 65 72 20 67 |..4.Game|Master g|
|00005050| 75 61 72 61 6e 74 65 65 | 73 20 74 68 61 74 20 74 |uarantee|s that t|
|00005060| 68 65 20 6c 61 73 74 20 | 65 76 65 6e 74 20 69 74 |he last |event it|
|00005070| 20 77 69 6c 6c 20 65 76 | 65 72 20 73 65 6e 64 20 | will ev|er send |
|00005080| 74 6f 20 61 20 72 75 6c | 65 20 62 6f 6f 6b 20 28 |to a rul|e book (|
|00005090| 62 65 66 6f 72 65 20 63 | 6c 6f 73 69 6e 67 20 69 |before c|losing i|
|000050a0| 74 73 20 72 65 73 6f 75 | 72 63 65 20 66 6f 72 6b |ts resou|rce fork|
|000050b0| 29 20 69 73 20 74 68 65 | 20 67 65 5f 46 69 6e 69 |) is the| ge_Fini|
|000050c0| 73 68 52 75 6c 65 42 6f | 6f 6b 20 65 76 65 6e 74 |shRuleBo|ok event|
|000050d0| 2e 20 20 54 68 65 20 72 | 75 6c 65 20 62 6f 6f 6b |. The r|ule book|
|000050e0| 20 73 68 6f 75 6c 64 20 | 75 73 65 20 74 68 69 73 | should |use this|
|000050f0| 20 6f 70 70 6f 72 74 75 | 6e 69 74 79 20 74 6f 20 | opportu|nity to |
|00005100| 64 65 61 6c 6c 6f 63 61 | 74 65 20 61 6e 79 20 67 |dealloca|te any g|
|00005110| 6c 6f 62 61 6c 20 73 74 | 6f 72 61 67 65 20 69 74 |lobal st|orage it|
|00005120| 20 68 61 73 2e 20 20 53 | 65 74 74 69 6e 67 20 74 | has. S|etting t|
|00005130| 68 65 20 67 6c 6f 62 61 | 6c 73 20 70 6f 69 6e 74 |he globa|ls point|
|00005140| 65 72 20 74 6f 20 6e 69 | 6c 20 69 73 20 61 6c 73 |er to ni|l is als|
|00005150| 6f 20 61 20 67 6f 6f 64 | 20 69 64 65 61 2e 0d 02 |o a good| idea...|
|00005160| 40 fc 00 71 01 f0 0e 00 | 71 01 14 01 c4 02 34 f7 |@..q....|q.....4.|
|00005170| ff 00 10 0c 00 f7 0d fc | 00 55 01 f0 0e 00 55 01 |........|.U....U.|
|00005180| 10 01 c4 07 88 f7 ff 00 | 10 0c 00 f7 ff 00 10 0e |........|........|
|00005190| 00 f7 35 2e 33 2e 09 47 | 61 6d 65 20 4f 70 65 6e |..5.3..G|ame Open|
|000051a0| 2f 43 6c 6f 73 65 20 45 | 76 65 6e 74 73 ff 00 10 |/Close E|vents...|
|000051b0| 0c 00 f7 0d fc 00 71 01 | f0 0e 00 71 01 14 01 c4 |......q.|...q....|
|000051c0| 02 34 f7 0d 54 68 65 20 | 47 61 6d 65 20 4f 70 65 |.4..The |Game Ope|
|000051d0| 6e 2f 43 6c 6f 73 65 20 | 45 76 65 6e 74 73 20 70 |n/Close |Events p|
|000051e0| 72 6f 76 69 64 65 20 74 | 68 65 20 62 61 73 69 63 |rovide t|he basic|
|000051f0| 20 63 6f 6e 74 72 6f 6c | 20 6e 65 63 65 73 73 61 | control| necessa|
|00005200| 72 79 20 74 6f 20 73 74 | 61 72 74 20 6e 65 77 20 |ry to st|art new |
|00005210| 61 6e 64 20 6f 6c 64 20 | 67 61 6d 65 73 2c 20 72 |and old |games, r|
|00005220| 65 73 74 61 72 74 20 67 | 61 6d 65 73 20 61 6e 64 |estart g|ames and|
|00005230| 20 63 6c 6f 73 65 20 67 | 61 6d 65 73 2e 20 0d 0d | close g|ames. ..|
|00005240| fc 00 55 01 f0 0e 00 55 | 01 14 01 c4 06 34 07 88 |..U....U|.....4..|
|00005250| f7 67 65 5f 4e 65 77 47 | 61 6d 65 0d fc 00 71 01 |.ge_NewG|ame...q.|
|00005260| f0 0e 00 71 01 14 01 c4 | 02 34 f7 57 68 65 6e 20 |...q....|.4.When |
|00005270| 74 68 65 20 75 73 65 72 | 20 63 72 65 61 74 65 73 |the user| creates|
|00005280| 20 61 20 67 61 6d 65 20 | 75 73 69 6e 67 20 74 68 | a game |using th|
|00005290| 65 20 4e 65 77 20 47 61 | 6d 65 20 6d 65 6e 75 20 |e New Ga|me menu |
|000052a0| 69 74 65 6d 20 47 61 6d | 65 4d 61 73 74 65 72 20 |item Gam|eMaster |
|000052b0| 73 65 6e 64 73 20 74 68 | 69 73 20 65 76 65 6e 74 |sends th|is event|
|000052c0| 20 74 6f 20 74 68 65 20 | 72 75 6c 65 20 62 6f 6f | to the |rule boo|
|000052d0| 6b 2e 20 20 47 61 6d 65 | 4d 61 73 74 65 72 20 68 |k. Game|Master h|
|000052e0| 61 73 20 61 6c 72 65 61 | 64 79 20 63 72 65 61 74 |as alrea|dy creat|
|000052f0| 65 64 20 61 20 7a 65 72 | 6f 20 73 69 7a 65 64 20 |ed a zer|o sized |
|00005300| 68 61 6e 64 6c 65 20 61 | 6e 64 20 73 74 6f 72 65 |handle a|nd store|
|00005310| 64 20 69 74 20 69 6e 20 | 74 68 65 20 67 61 6d 65 |d it in |the game|
|00005320| 20 66 69 65 6c 64 2e 20 | 20 54 68 65 20 72 75 6c | field. | The rul|
|00005330| 65 20 62 6f 6f 6b 20 73 | 68 6f 75 6c 64 20 67 72 |e book s|hould gr|
|00005340| 6f 77 20 74 68 69 73 20 | 68 61 6e 64 6c 65 20 61 |ow this |handle a|
|00005350| 6e 64 20 69 6e 69 74 69 | 61 6c 69 73 65 20 69 74 |nd initi|alise it|
|00005360| 20 74 6f 20 74 68 65 20 | 61 70 70 72 6f 70 72 69 | to the |appropri|
|00005370| 61 74 65 20 69 6e 69 74 | 69 61 6c 20 73 74 61 74 |ate init|ial stat|
|00005380| 65 2e 0d fc 00 71 01 f0 | 0e 00 71 81 10 01 f0 00 |e....q..|..q.....|
|00005390| 02 a8 03 f0 0d 04 28 09 | 48 f7 ff 00 10 0a 02 f7 |......(.|H.......|
|000053a0| 0d 01 cd ff 00 10 0c 00 | f7 0d fc 00 71 01 f0 0e |........|....q...|
|000053b0| 00 71 01 14 01 c4 02 34 | f7 4f 6e 20 72 65 74 75 |.q.....4|.On retu|
|000053c0| 72 6e 20 47 61 6d 65 4d | 61 73 74 65 72 20 65 78 |rn GameM|aster ex|
|000053d0| 70 65 63 74 73 20 74 68 | 61 74 20 74 68 65 20 67 |pects th|at the g|
|000053e0| 61 6d 65 20 68 61 6e 64 | 6c 65 20 62 65 20 66 69 |ame hand|le be fi|
|000053f0| 6c 6c 65 64 20 6f 75 74 | 20 77 69 74 68 20 61 6e |lled out| with an|
|00005400| 20 69 6e 69 74 69 61 6c | 20 67 61 6d 65 20 73 74 | initial| game st|
|00005410| 61 74 65 2e 0d 20 0d fc | 00 55 01 f0 0e 00 55 01 |ate.. ..|.U....U.|
|00005420| 14 01 c4 06 34 07 88 f7 | 67 65 5f 4f 6c 64 47 61 |....4...|ge_OldGa|
|00005430| 6d 65 0d fc 00 71 01 f0 | 0e 00 71 01 14 01 c4 02 |me...q..|..q.....|
|00005440| 34 f7 57 68 65 6e 20 74 | 68 65 20 75 73 65 72 20 |4.When t|he user |
|00005450| 72 65 73 75 6d 65 73 20 | 61 20 73 61 76 65 64 20 |resumes |a saved |
|00005460| 67 61 6d 65 20 47 61 6d | 65 4d 61 73 74 65 72 20 |game Gam|eMaster |
|00005470| 73 65 6e 64 73 20 74 68 | 65 20 67 65 5f 4f 6c 64 |sends th|e ge_Old|
|00005480| 47 61 6d 65 20 65 76 65 | 6e 74 20 74 6f 20 74 68 |Game eve|nt to th|
|00005490| 65 20 72 75 6c 65 20 62 | 6f 6f 6b 2e 20 20 54 68 |e rule b|ook. Th|
|000054a0| 65 20 67 61 6d 65 20 68 | 61 6e 64 6c 65 20 68 61 |e game h|andle ha|
|000054b0| 73 20 61 6c 72 65 61 64 | 79 20 62 65 65 6e 20 66 |s alread|y been f|
|000054c0| 69 6c 6c 65 64 20 6f 75 | 74 20 77 69 74 68 20 74 |illed ou|t with t|
|000054d0| 68 65 20 73 61 76 65 64 | 20 67 61 6d 65 20 73 74 |he saved| game st|
|000054e0| 61 74 65 2e 20 20 54 68 | 65 20 72 75 6c 65 20 62 |ate. Th|e rule b|
|000054f0| 6f 6f 6b 20 73 68 6f 75 | 6c 64 20 6f 76 65 72 77 |ook shou|ld overw|
|00005500| 72 69 74 65 20 61 6e 79 | 20 66 69 65 6c 64 73 20 |rite any| fields |
|00005510| 69 6e 20 74 68 65 20 67 | 61 6d 65 20 77 68 69 63 |in the g|ame whic|
|00005520| 68 20 61 72 65 20 69 6e | 61 70 70 72 6f 70 72 69 |h are in|appropri|
|00005530| 61 74 65 20 74 6f 20 6c | 6f 61 64 20 66 72 6f 6d |ate to l|oad from|
|00005540| 20 64 69 73 6b 20 61 6e | 64 20 72 65 74 75 72 6e | disk an|d return|
|00005550| 2e 0d fc 00 71 01 f0 0e | 00 71 81 10 01 f0 00 02 |....q...|.q......|
|00005560| a8 03 f0 0d 04 28 09 48 | f7 ff 00 10 0a 02 f7 0d |.....(.H|........|
|00005570| 02 28 fc 00 71 01 f0 0e | 00 71 01 14 01 c4 02 34 |.(..q...|.q.....4|
|00005580| f7 ff 00 10 0c 00 f7 0d | 54 68 65 20 67 65 5f 4f |........|The ge_O|
|00005590| 6c 64 47 61 6d 65 20 65 | 76 65 6e 74 20 69 73 20 |ldGame e|vent is |
|000055a0| 61 6c 73 6f 20 75 73 65 | 64 20 61 73 20 70 61 72 |also use|d as par|
|000055b0| 74 20 6f 66 20 74 68 65 | 20 6e 65 74 77 6f 72 6b |t of the| network|
|000055c0| 20 63 6f 6e 6e 65 63 74 | 20 70 72 6f 63 65 73 73 | connect| process|
|000055d0| 2e 0d fc 00 71 01 f0 0e | 00 71 81 10 01 f0 00 02 |....q...|.q......|
|000055e0| a8 03 f0 0d 04 28 09 48 | f7 0d fc 00 55 01 f0 0e |.....(.H|....U...|
|000055f0| 00 55 01 14 01 c4 06 34 | 07 88 f7 67 65 5f 53 77 |.U.....4|...ge_Sw|
|00005600| 61 70 0d fc 00 71 01 f0 | 0e 00 71 01 14 01 c4 02 |ap...q..|..q.....|
|00005610| 34 f7 54 68 65 20 67 65 | 5f 53 77 61 70 20 65 76 |4.The ge|_Swap ev|
|00005620| 65 6e 74 20 69 73 20 73 | 65 6e 74 20 74 6f 20 61 |ent is s|ent to a|
|00005630| 20 72 75 6c 65 20 62 6f | 6f 6b 20 77 68 65 6e 20 | rule bo|ok when |
|00005640| 74 68 65 20 75 73 65 72 | 20 63 68 6f 6f 73 65 73 |the user| chooses|
|00005650| 20 53 77 61 70 20 66 72 | 6f 6d 20 74 68 65 20 47 | Swap fr|om the G|
|00005660| 61 6d 65 4d 61 73 74 65 | 72 20 6d 65 6e 75 73 2e |ameMaste|r menus.|
|00005670| 20 20 53 77 61 70 70 69 | 6e 67 20 69 73 20 6f 6e | Swappi|ng is on|
|00005680| 6c 79 20 6d 65 61 6e 69 | 6e 67 66 75 6c 20 77 68 |ly meani|ngful wh|
|00005690| 65 6e 20 74 77 6f 20 67 | 61 6d 65 73 20 61 72 65 |en two g|ames are|
|000056a0| 20 63 6f 6e 6e 65 63 74 | 65 64 2e 20 20 54 68 65 | connect|ed. The|
|000056b0| 20 69 64 65 61 20 62 65 | 68 69 6e 64 20 73 77 61 | idea be|hind swa|
|000056c0| 70 20 69 73 20 74 68 61 | 74 20 69 74 20 73 68 6f |p is tha|t it sho|
|000056d0| 75 6c 64 20 63 68 61 6e | 67 65 20 77 68 61 74 20 |uld chan|ge what |
|000056e0| 73 69 64 65 20 74 68 65 | 20 65 61 63 68 20 70 6c |side the| each pl|
|000056f0| 61 79 65 72 20 69 73 20 | 70 6c 61 79 69 6e 67 2e |ayer is |playing.|
|00005700| 20 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 69 | For ex|ample, i|
|00005710| 66 20 46 72 65 64 20 77 | 61 73 20 70 6c 61 79 69 |f Fred w|as playi|
|00005720| 6e 67 20 42 6c 61 63 6b | 20 61 6e 64 20 53 68 65 |ng Black| and She|
|00005730| 69 6c 61 20 77 68 69 74 | 65 2c 20 74 68 65 6e 20 |ila whit|e, then |
|00005740| 61 66 74 65 72 20 61 20 | 73 77 61 70 20 46 72 65 |after a |swap Fre|
|00005750| 64 20 77 6f 75 6c 64 20 | 62 65 20 70 6c 61 79 69 |d would |be playi|
|00005760| 6e 67 20 57 68 69 74 65 | 20 61 6e 64 20 53 68 65 |ng White| and She|
|00005770| 69 6c 61 20 62 6c 61 63 | 6b 2e 20 0d fc 00 71 01 |ila blac|k. ...q.|
|00005780| f0 0e 00 71 81 10 01 f0 | 00 02 a8 03 f0 0d 04 28 |...q....|.......(|
|00005790| 09 48 f7 ff 00 10 0a 02 | f7 0d 01 79 ff 00 10 0c |.H......|...y....|
|000057a0| 00 f7 0d fc 00 71 01 f0 | 0e 00 71 01 14 01 c4 02 |.....q..|..q.....|
|000057b0| 34 f7 54 68 65 20 67 65 | 5f 53 77 61 70 20 65 76 |4.The ge|_Swap ev|
|000057c0| 65 6e 74 20 69 73 20 61 | 6c 73 6f 20 75 73 65 64 |ent is a|lso used|
|000057d0| 20 61 73 20 70 61 72 74 | 20 6f 66 20 74 68 65 20 | as part| of the |
|000057e0| 6e 65 74 77 6f 72 6b 20 | 63 6f 6e 6e 65 63 74 20 |network |connect |
|000057f0| 70 72 6f 63 65 73 73 2e | 0d 0d fc 00 55 01 f0 0e |process.|....U...|
|00005800| 00 55 01 14 01 c4 06 34 | 07 88 f7 67 65 5f 52 65 |.U.....4|...ge_Re|
|00005810| 73 74 61 72 74 0d fc 00 | 71 01 f0 0e 00 71 01 14 |start...|q....q..|
|00005820| 01 c4 02 34 f7 54 68 65 | 20 67 65 5f 52 65 73 74 |...4.The| ge_Rest|
|00005830| 61 72 74 20 65 76 65 6e | 74 20 69 73 20 73 65 6e |art even|t is sen|
|00005840| 74 20 74 6f 20 61 20 72 | 75 6c 65 20 62 6f 6f 6b |t to a r|ule book|
|00005850| 20 77 68 65 6e 20 74 68 | 65 20 75 73 65 72 20 63 | when th|e user c|
|00005860| 68 6f 6f 73 65 73 20 52 | 65 73 74 61 72 74 20 66 |hooses R|estart f|
|00005870| 72 6f 6d 20 74 68 65 20 | 47 61 6d 65 4d 61 73 74 |rom the |GameMast|
|00005880| 65 72 20 6d 65 6e 75 73 | 2e 20 20 49 66 20 74 68 |er menus|. If th|
|00005890| 65 20 67 61 6d 65 20 69 | 73 20 63 6f 6e 6e 65 63 |e game i|s connec|
|000058a0| 74 65 64 20 74 68 65 6e | 20 62 6f 74 68 20 73 69 |ted then| both si|
|000058b0| 64 65 73 20 73 68 6f 75 | 6c 64 20 6f 72 67 61 6e |des shou|ld organ|
|000058c0| 69 73 65 20 74 6f 20 62 | 65 20 70 6c 61 79 69 6e |ise to b|e playin|
|000058d0| 67 20 64 69 66 66 65 72 | 65 6e 74 20 70 6c 61 79 |g differ|ent play|
|000058e0| 65 72 73 20 61 66 74 65 | 72 20 74 68 65 20 72 65 |ers afte|r the re|
|000058f0| 73 74 61 72 74 2e 0d fc | 00 71 01 f0 0e 00 71 81 |start...|.q....q.|
|00005900| 10 01 f0 00 02 a8 03 f0 | 0d 04 28 09 48 f7 ff 00 |........|..(.H...|
|00005910| 10 0a 02 f7 0d 03 25 fc | 00 71 01 f0 0e 00 71 01 |......%.|.q....q.|
|00005920| 14 01 c4 02 34 f7 54 68 | 69 73 20 65 76 65 6e 74 |....4.Th|is event|
|00005930| 20 69 73 20 73 69 6d 70 | 6c 79 20 61 20 63 68 61 | is simp|ly a cha|
|00005940| 6e 63 65 20 66 6f 72 20 | 74 68 65 20 72 75 6c 65 |nce for |the rule|
|00005950| 20 62 6f 6f 6b 20 74 6f | 20 64 6f 20 61 6e 79 20 | book to| do any |
|00005960| 63 6c 65 61 6e 69 6e 67 | 20 75 70 20 6e 6f 74 20 |cleaning| up not |
|00005970| 63 6f 76 65 72 65 64 20 | 62 79 20 6f 74 68 65 72 |covered |by other|
|00005980| 20 65 76 65 6e 74 73 2e | 20 20 53 70 65 63 69 66 | events.| Specif|
|00005990| 69 63 61 6c 6c 79 2c 20 | 69 66 20 74 68 65 20 72 |ically, |if the r|
|000059a0| 75 6c 65 20 62 6f 6f 6b | 20 73 74 6f 72 65 73 20 |ule book| stores |
|000059b0| 70 6f 69 6e 74 65 72 73 | 20 69 6e 20 74 68 65 20 |pointers| in the |
|000059c0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |contents| of the |
|000059d0| 67 61 6d 65 20 68 61 6e | 64 6c 65 20 28 61 6e 64 |game han|dle (and|
|000059e0| 20 6f 6e 6c 79 20 74 68 | 65 72 65 29 20 69 74 20 | only th|ere) it |
|000059f0| 73 68 6f 75 6c 64 20 6e | 6f 74 65 20 74 68 61 74 |should n|ote that|
|00005a00| 20 74 68 65 20 67 61 6d | 65 20 68 61 6e 64 6c 65 | the gam|e handle|
|00005a10| 20 69 73 20 61 62 6f 75 | 74 20 74 6f 20 62 65 20 | is abou|t to be |
|00005a20| 64 69 73 70 6f 73 65 64 | 2e 0d 0d fc 00 55 01 f0 |disposed|.....U..|
|00005a30| 0e 00 55 01 10 01 c4 07 | 88 f7 ff 00 10 0e 00 f7 |..U.....|........|
|00005a40| 35 2e 34 2e 09 47 61 6d | 65 20 43 6f 6d 6d 75 6e |5.4..Gam|e Commun|
|00005a50| 69 63 61 74 69 6f 6e 73 | 20 45 76 65 6e 74 73 ff |ications| Events.|
|00005a60| 00 10 0c 00 f7 0d fc 00 | 71 01 f0 0e 00 71 01 14 |........|q....q..|
|00005a70| 01 c4 02 34 f7 0d 54 68 | 65 20 47 61 6d 65 20 43 |...4..Th|e Game C|
|00005a80| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 73 20 45 76 |ommunica|tions Ev|
|00005a90| 65 6e 74 73 20 70 72 6f | 76 69 64 65 20 74 68 65 |ents pro|vide the|
|00005aa0| 20 66 72 61 6d 65 77 6f | 72 6b 20 62 79 20 77 68 | framewo|rk by wh|
|00005ab0| 69 63 68 20 72 75 6c 65 | 20 62 6f 6f 6b 73 20 6f |ich rule| books o|
|00005ac0| 6e 20 73 65 70 61 72 61 | 74 65 20 6d 61 63 68 69 |n separa|te machi|
|00005ad0| 6e 65 73 20 63 61 6e 20 | 74 61 6c 6b 2e 0d 0d fc |nes can |talk....|
|00005ae0| 00 55 01 f0 0e 00 55 01 | 14 01 c4 06 34 07 88 f7 |.U....U.|....4...|
|00005af0| 67 65 5f 43 6f 6e 6e 65 | 63 74 69 6f 6e 4d 61 64 |ge_Conne|ctionMad|
|00005b00| 65 0d fc 00 71 01 f0 0e | 00 71 01 14 01 c4 02 34 |e...q...|.q.....4|
|00005b10| f7 54 68 65 20 67 65 5f | 43 6f 6e 6e 65 63 74 69 |.The ge_|Connecti|
|00005b20| 6f 6e 4d 61 64 65 20 65 | 76 65 6e 74 20 69 73 20 |onMade e|vent is |
|00005b30| 73 65 6e 74 20 74 6f 20 | 61 20 72 75 6c 65 20 62 |sent to |a rule b|
|00005b40| 6f 6f 6b 20 77 68 65 6e | 20 74 68 65 20 67 61 6d |ook when| the gam|
|00005b50| 65 20 72 65 66 65 72 65 | 6e 63 65 64 20 69 6e 20 |e refere|nced in |
|00005b60| 74 68 65 20 67 61 6d 65 | 20 65 76 65 6e 74 20 72 |the game| event r|
|00005b70| 65 63 6f 72 64 20 69 73 | 20 63 6f 6e 6e 65 63 74 |ecord is| connect|
|00005b80| 65 64 20 74 6f 20 74 6f | 20 61 20 72 65 6d 6f 74 |ed to to| a remot|
|00005b90| 65 20 67 61 6d 65 2e 20 | 20 47 61 6d 65 4d 61 73 |e game. | GameMas|
|00005ba0| 74 65 72 20 75 73 65 73 | 20 74 68 65 20 67 61 6d |ter uses| the gam|
|00005bb0| 65 20 73 74 61 74 65 20 | 73 74 6f 72 65 64 20 69 |e state |stored i|
|00005bc0| 6e 20 74 68 65 20 67 61 | 6d 65 20 72 65 63 6f 72 |n the ga|me recor|
|00005bd0| 64 20 74 6f 20 65 6e 73 | 75 72 65 20 74 68 61 74 |d to ens|ure that|
|00005be0| 20 62 6f 74 68 20 74 68 | 65 20 6c 6f 63 61 6c 20 | both th|e local |
|00005bf0| 61 6e 64 20 72 65 6d 6f | 74 65 20 70 6c 61 79 65 |and remo|te playe|
|00005c00| 72 73 20 61 72 65 20 70 | 6c 61 79 69 6e 67 20 74 |rs are p|laying t|
|00005c10| 68 65 20 73 61 6d 65 20 | 67 61 6d 65 2e 0d fc 00 |he same |game....|
|00005c20| 71 01 f0 0e 00 71 81 10 | 01 f0 00 02 a8 03 f0 0d |q....q..|........|
|00005c30| 04 28 09 48 f7 ff 00 10 | 0a 02 f7 0d 01 a9 ff 00 |.(.H....|........|
|00005c40| 10 0c 00 f7 0d fc 00 71 | 01 f0 0e 00 71 01 14 01 |.......q|....q...|
|00005c50| c4 02 34 f7 54 68 65 20 | 67 61 6d 65 20 73 68 6f |..4.The |game sho|
|00005c60| 75 6c 64 20 75 70 64 61 | 74 65 20 74 68 65 20 67 |uld upda|te the g|
|00005c70| 61 6d 65 20 68 61 6e 64 | 6c 65 20 74 6f 20 61 6c |ame hand|le to al|
|00005c80| 6c 6f 77 20 66 6f 72 20 | 74 68 65 20 66 61 63 74 |low for |the fact|
|00005c90| 20 74 68 61 74 20 6d 65 | 73 73 61 67 65 73 20 6d | that me|ssages m|
|00005ca0| 61 79 20 6e 6f 77 20 62 | 65 20 73 65 6e 74 20 61 |ay now b|e sent a|
|00005cb0| 6e 64 20 72 65 63 65 69 | 76 65 64 2e 0d 0d fc 00 |nd recei|ved.....|
|00005cc0| 55 01 f0 0e 00 55 01 14 | 01 c4 06 34 07 88 f7 67 |U....U..|...4...g|
|00005cd0| 65 5f 43 6f 6e 6e 65 63 | 74 69 6f 6e 4c 6f 73 74 |e_Connec|tionLost|
|00005ce0| 0d fc 00 71 01 f0 0e 00 | 71 01 14 01 c4 02 34 f7 |...q....|q.....4.|
|00005cf0| 54 68 65 20 67 65 5f 43 | 6f 6e 6e 65 63 74 69 6f |The ge_C|onnectio|
|00005d00| 6e 4c 6f 73 74 20 20 65 | 76 65 6e 74 20 69 73 20 |nLost e|vent is |
|00005d10| 73 65 6e 74 20 74 6f 20 | 61 20 72 75 6c 65 20 62 |sent to |a rule b|
|00005d20| 6f 6f 6b 20 77 68 65 6e | 20 74 68 65 20 63 6f 6e |ook when| the con|
|00005d30| 6e 65 63 74 69 6f 6e 20 | 74 6f 20 61 6e 6f 74 68 |nection |to anoth|
|00005d40| 65 72 20 67 61 6d 65 20 | 69 73 20 6c 6f 73 74 20 |er game |is lost |
|00005d50| 66 6f 72 20 73 6f 6d 65 | 20 72 65 61 73 6f 6e 2c |for some| reason,|
|00005d60| 20 70 6f 73 73 69 62 6c | 79 20 6e 65 74 77 6f 72 | possibl|y networ|
|00005d70| 6b 20 74 72 6f 75 62 6c | 65 73 2c 20 74 68 65 20 |k troubl|es, the |
|00005d80| 72 65 6d 6f 74 65 20 6d | 61 63 68 69 6e 65 20 68 |remote m|achine h|
|00005d90| 61 73 20 63 72 61 73 68 | 65 64 2c 20 6f 72 20 74 |as crash|ed, or t|
|00005da0| 68 65 20 6f 74 68 65 72 | 20 70 6c 61 79 65 72 20 |he other| player |
|00005db0| 68 61 73 20 6a 75 73 74 | 20 63 6c 6f 73 65 64 20 |has just| closed |
|00005dc0| 68 69 73 20 65 6e 64 2e | 0d fc 00 71 01 f0 0e 00 |his end.|...q....|
|00005dd0| 71 81 10 01 f0 00 02 a8 | 03 f0 0d 04 28 09 48 f7 |q.......|....(.H.|
|00005de0| ff 00 10 0a 02 f7 0d 01 | 55 ff 00 10 0c 00 f7 0d |........|U.......|
|00005df0| fc 00 55 01 f0 0e 00 55 | 01 14 01 c4 06 34 07 88 |..U....U|.....4..|
|00005e00| f7 67 65 5f 4d 65 73 73 | 61 67 65 52 65 63 65 69 |.ge_Mess|ageRecei|
|00005e10| 76 65 64 0d fc 00 71 01 | f0 0e 00 71 01 14 01 c4 |ved...q.|...q....|
|00005e20| 02 34 f7 54 68 65 20 67 | 65 5f 4d 65 73 73 61 67 |.4.The g|e_Messag|
|00005e30| 65 52 65 63 65 69 76 65 | 64 20 65 76 65 6e 74 20 |eReceive|d event |
|00005e40| 63 61 6e 20 6f 6e 6c 79 | 20 62 65 20 73 65 6e 74 |can only| be sent|
|00005e50| 20 69 66 20 74 68 65 20 | 67 61 6d 65 20 69 73 20 | if the |game is |
|00005e60| 63 6f 6e 6e 65 63 74 65 | 64 20 74 6f 20 61 6e 6f |connecte|d to ano|
|00005e70| 74 68 65 72 20 72 65 6d | 6f 74 65 20 67 61 6d 65 |ther rem|ote game|
|00005e80| 2c 20 74 68 61 74 20 69 | 73 20 62 65 74 77 65 65 |, that i|s betwee|
|00005e90| 6e 20 61 20 67 65 5f 43 | 6f 6e 6e 65 63 74 69 6f |n a ge_C|onnectio|
|00005ea0| 6e 4d 61 64 65 20 61 6e | 64 20 61 20 67 65 5f 43 |nMade an|d a ge_C|
|00005eb0| 6f 6e 6e 65 63 74 69 6f | 6e 4c 6f 73 74 20 65 76 |onnectio|nLost ev|
|00005ec0| 65 6e 74 2e 20 20 57 68 | 65 6e 20 61 20 67 61 6d |ent. Wh|en a gam|
|00005ed0| 65 20 72 65 63 65 69 76 | 65 73 20 61 20 6d 65 73 |e receiv|es a mes|
|00005ee0| 73 61 67 65 20 69 74 20 | 73 68 6f 75 6c 64 20 70 |sage it |should p|
|00005ef0| 65 72 66 6f 72 6d 20 61 | 6e 79 20 61 63 74 69 6f |erform a|ny actio|
|00005f00| 6e 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |n associ|ated wit|
|00005f10| 68 20 74 68 61 74 20 6d | 65 73 73 61 67 65 2e 0d |h that m|essage..|
|00005f20| fc 00 71 01 f0 0e 00 71 | 81 10 01 f0 00 02 a8 03 |..q....q|........|
|00005f30| f0 0d 04 28 09 48 f7 ff | 00 10 0a 02 f7 0d 02 53 |...(.H..|.......S|
|00005f40| ff 00 10 0c 00 f7 0d fc | 00 71 01 f0 0e 00 71 01 |........|.q....q.|
|00005f50| 14 01 c4 02 34 f7 54 68 | 65 20 6f 74 68 65 72 20 |....4.Th|e other |
|00005f60| 63 6f 6e 6e 65 63 74 69 | 6f 6e 20 65 76 65 6e 74 |connecti|on event|
|00005f70| 20 69 73 20 67 65 5f 53 | 65 6e 64 4d 65 73 73 61 | is ge_S|endMessa|
|00005f80| 67 65 2e 20 20 54 68 69 | 73 20 69 73 20 61 20 47 |ge. Thi|s is a G|
|00005f90| 61 6d 65 20 52 65 74 75 | 72 6e 20 45 76 65 6e 74 |ame Retu|rn Event|
|00005fa0| 20 61 6e 64 20 69 73 20 | 64 69 73 63 75 73 73 65 | and is |discusse|
|00005fb0| 64 20 69 6e 20 53 65 63 | 74 69 6f 6e 20 35 2e 37 |d in Sec|tion 5.7|
|00005fc0| 2e 0d 0d fc 00 55 01 f0 | 0e 00 55 01 10 01 c4 07 |.....U..|..U.....|
|00005fd0| 88 f7 ff 00 10 0e 00 f7 | 35 2e 35 2e 09 47 61 6d |........|5.5..Gam|
|00005fe0| 65 20 43 6f 6e 74 72 6f | 6c 20 45 76 65 6e 74 73 |e Contro|l Events|
|00005ff0| ff 00 10 0c 00 f7 0d fc | 00 71 01 f0 0e 00 71 01 |........|.q....q.|
|00006000| 14 01 c4 02 34 f7 0d 54 | 68 65 20 47 61 6d 65 20 |....4..T|he Game |
|00006010| 43 6f 6e 74 72 6f 6c 20 | 45 76 65 6e 74 73 20 61 |Control |Events a|
|00006020| 72 65 20 64 65 73 69 67 | 6e 65 64 20 74 6f 20 61 |re desig|ned to a|
|00006030| 6c 6c 6f 77 20 72 75 6c | 65 20 62 6f 6f 6b 73 20 |llow rul|e books |
|00006040| 74 6f 20 75 73 65 20 6d | 65 6e 75 73 2e 20 20 54 |to use m|enus. T|
|00006050| 68 65 79 20 61 6c 73 6f | 20 67 69 76 65 20 74 68 |hey also| give th|
|00006060| 65 20 72 75 6c 65 20 62 | 6f 6f 6b 73 20 6e 6f 74 |e rule b|ooks not|
|00006070| 69 66 69 63 61 74 69 6f | 6e 20 6f 66 20 77 69 6e |ificatio|n of win|
|00006080| 64 6f 77 20 28 64 65 29 | 61 63 74 69 76 61 74 69 |dow (de)|activati|
|00006090| 6f 6e 2e 20 20 54 68 65 | 20 72 75 6c 65 20 62 6f |on. The| rule bo|
|000060a0| 6f 6b 73 20 63 61 6e 20 | 61 6c 73 6f 20 75 73 65 |oks can |also use|
|000060b0| 20 74 68 65 73 65 20 65 | 76 65 6e 74 73 20 66 6f | these e|vents fo|
|000060c0| 72 20 74 68 65 69 72 20 | 6f 77 6e 20 70 75 72 70 |r their |own purp|
|000060d0| 6f 73 65 73 2e 0d 0d fc | 00 55 01 f0 0e 00 55 01 |oses....|.U....U.|
|000060e0| 14 01 c4 06 34 07 88 f7 | 67 65 5f 41 63 74 69 76 |....4...|ge_Activ|
|000060f0| 61 74 65 0d fc 00 71 01 | f0 0e 00 71 01 14 01 c4 |ate...q.|...q....|
|00006100| 02 34 f7 54 68 65 20 67 | 65 5f 41 63 74 69 76 61 |.4.The g|e_Activa|
|00006110| 74 65 20 65 76 65 6e 74 | 20 69 73 20 73 65 6e 74 |te event| is sent|
|00006120| 20 74 6f 20 61 20 72 75 | 6c 65 20 62 6f 6f 6b 20 | to a ru|le book |
|00006130| 77 68 65 6e 20 6f 6e 65 | 20 6f 66 20 69 74 73 20 |when one| of its |
|00006140| 67 61 6d 65 20 77 69 6e | 64 6f 77 73 20 69 73 20 |game win|dows is |
|00006150| 61 63 74 69 76 61 74 65 | 64 20 28 69 65 20 62 72 |activate|d (ie br|
|00006160| 6f 75 67 68 74 20 74 6f | 20 74 68 65 20 66 72 6f |ought to| the fro|
|00006170| 6e 74 29 2e 0d fc 00 71 | 01 f0 0e 00 71 81 10 01 |nt)....q|....q...|
|00006180| f0 00 02 a8 03 f0 0d 04 | 28 09 48 f7 ff 00 10 0a |........|(.H.....|
|00006190| 02 f7 0d 01 f2 ff 00 10 | 0c 00 f7 0d fc 00 71 01 |........|......q.|
|000061a0| f0 0e 00 71 01 14 01 c4 | 02 34 f7 54 68 65 20 72 |...q....|.4.The r|
|000061b0| 75 6c 65 20 62 6f 6f 6b | 20 73 68 6f 75 6c 64 20 |ule book| should |
|000061c0| 70 65 72 66 6f 72 6d 20 | 61 6e 79 20 61 63 74 69 |perform |any acti|
|000061d0| 6f 6e 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |on assoc|iated wi|
|000061e0| 74 68 20 62 72 69 6e 67 | 69 6e 67 20 74 68 65 20 |th bring|ing the |
|000061f0| 77 69 6e 64 6f 77 20 74 | 6f 20 74 68 65 20 66 72 |window t|o the fr|
|00006200| 6f 6e 74 2e 20 20 4f 6e | 65 20 70 72 6f 62 61 62 |ont. On|e probab|
|00006210| 6c 65 20 61 63 74 69 6f | 6e 20 69 73 20 74 6f 20 |le actio|n is to |
|00006220| 61 64 64 20 6d 65 6e 75 | 73 20 74 6f 20 74 68 65 |add menu|s to the|
|00006230| 20 6d 65 6e 75 20 62 61 | 72 2e 20 20 4e 6f 74 65 | menu ba|r. Note|
|00006240| 20 74 68 61 74 20 69 66 | 20 74 68 65 20 72 75 6c | that if| the rul|
|00006250| 65 20 62 6f 6f 6b 20 61 | 64 64 73 20 6d 65 6e 75 |e book a|dds menu|
|00006260| 73 20 69 74 20 73 68 6f | 75 6c 64 20 6d 61 6b 65 |s it sho|uld make|
|00006270| 20 73 75 72 65 20 74 68 | 61 74 20 74 68 65 20 6d | sure th|at the m|
|00006280| 65 6e 75 20 49 44 20 69 | 73 20 67 72 65 61 74 65 |enu ID i|s greate|
|00006290| 72 20 74 68 61 6e 20 31 | 30 30 30 20 61 6e 64 20 |r than 1|000 and |
|000062a0| 63 61 6c 6c 20 44 72 61 | 77 4d 65 6e 75 42 61 72 |call Dra|wMenuBar|
|000062b0| 2e 0d 0d fc 00 55 01 f0 | 0e 00 55 01 14 01 c4 06 |.....U..|..U.....|
|000062c0| 34 07 88 f7 67 65 5f 44 | 65 61 63 74 69 76 61 74 |4...ge_D|eactivat|
|000062d0| 65 0d fc 00 71 01 f0 0e | 00 71 01 14 01 c4 02 34 |e...q...|.q.....4|
|000062e0| f7 54 68 65 20 67 65 5f | 44 65 61 63 74 69 76 61 |.The ge_|Deactiva|
|000062f0| 74 65 20 65 76 65 6e 74 | 20 69 73 20 73 65 6e 74 |te event| is sent|
|00006300| 20 74 6f 20 61 20 72 75 | 6c 65 20 62 6f 6f 6b 20 | to a ru|le book |
|00006310| 77 68 65 6e 20 6f 6e 65 | 20 6f 66 20 69 74 73 20 |when one| of its |
|00006320| 67 61 6d 65 20 77 69 6e | 64 6f 77 73 20 69 73 20 |game win|dows is |
|00006330| 64 65 61 63 74 69 76 61 | 74 65 64 20 28 69 65 20 |deactiva|ted (ie |
|00006340| 61 6e 6f 74 68 65 72 20 | 77 69 6e 64 6f 77 20 69 |another |window i|
|00006350| 73 20 62 72 6f 75 67 68 | 74 20 74 6f 20 74 68 65 |s brough|t to the|
|00006360| 20 66 72 6f 6e 74 29 2e | 0d fc 00 71 01 f0 0e 00 | front).|...q....|
|00006370| 71 81 10 01 f0 00 02 a8 | 03 f0 0d 04 28 09 48 f7 |q.......|....(.H.|
|00006380| ff 00 10 0a 02 f7 0d 02 | 26 ff 00 10 0c 00 f7 0d |........|&.......|
|00006390| fc 00 71 01 f0 0e 00 71 | 01 14 01 c4 02 34 f7 54 |..q....q|.....4.T|
|000063a0| 68 65 20 72 75 6c 65 20 | 62 6f 6f 6b 20 73 68 6f |he rule |book sho|
|000063b0| 75 6c 64 20 70 65 72 66 | 6f 72 6d 20 61 6e 79 20 |uld perf|orm any |
|000063c0| 61 63 74 69 6f 6e 20 61 | 73 73 6f 63 69 61 74 65 |action a|ssociate|
|000063d0| 64 20 77 69 74 68 20 64 | 65 61 63 74 69 76 61 74 |d with d|eactivat|
|000063e0| 69 6e 67 20 74 68 65 20 | 77 69 6e 64 6f 77 2e 20 |ing the |window. |
|000063f0| 20 4f 6e 65 20 70 72 6f | 62 61 62 6c 65 20 61 63 | One pro|bable ac|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.